mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
perf_event: Fix preempt warning in perf_clock()
commit 24691ea964 upstream.
A recent commit introduced a preemption warning for
perf_clock(), use raw_smp_processor_id() to avoid this, it
really doesn't matter which cpu we use here.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1267198583.22519.684.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5f37656428
commit
fc0df425c9
@@ -248,7 +248,7 @@ static void perf_unpin_context(struct perf_event_context *ctx)
|
||||
|
||||
static inline u64 perf_clock(void)
|
||||
{
|
||||
return cpu_clock(smp_processor_id());
|
||||
return cpu_clock(raw_smp_processor_id());
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user