[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1267198583.22519.684.camel@laptop>
Date: Fri, 26 Feb 2010 16:36:23 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: tglx <tglx@...utronix.de>, LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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: Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC: stable@...nel.org
LKML-Reference: <new-submission>
---
Index: linux-2.6/kernel/perf_event.c
===================================================================
--- linux-2.6.orig/kernel/perf_event.c
+++ linux-2.6/kernel/perf_event.c
@@ -249,7 +249,7 @@ static void perf_unpin_context(struct pe
static inline u64 perf_clock(void)
{
- return cpu_clock(smp_processor_id());
+ return cpu_clock(raw_smp_processor_id());
}
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists