提交 24691ea9 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf_event: Fix preempt warning in perf_clock()

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: NPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1267198583.22519.684.camel@laptop>
Cc: <stable@kernel.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 4385d580
...@@ -249,7 +249,7 @@ static void perf_unpin_context(struct perf_event_context *ctx) ...@@ -249,7 +249,7 @@ static void perf_unpin_context(struct perf_event_context *ctx)
static inline u64 perf_clock(void) static inline u64 perf_clock(void)
{ {
return cpu_clock(smp_processor_id()); return cpu_clock(raw_smp_processor_id());
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册