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 <[email protected]>
LKML-Reference: <
1267198583.22519.684.camel@laptop>
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
static inline u64 perf_clock(void)
{
- return cpu_clock(smp_processor_id());
+ return cpu_clock(raw_smp_processor_id());
}
/*