Skip to contentSkip to conversation

sched: x86: Name old_perf in a unique way

tip:sched/core tip-bot for Peter Zijlstra 1 participant 1 message Sep 16, 2009 x86

lore
Share & tools
lore
#0 lore raw
Commit-ID:  7c423e98856df9b941223a7e7845b2502ad84b00
Gitweb:     http://git.kernel.org/tip/7c423e98856df9b941223a7e7845b2502ad84b00
Author:     Peter Zijlstra <[email protected]>
AuthorDate: Wed, 16 Sep 2009 09:38:24 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 16 Sep 2009 11:21:07 +0200

sched: x86: Name old_perf in a unique way

Silly percpu bits don't respect static..

LKML-Reference: <new-submission>

---
 arch/x86/kernel/cpu/sched.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/sched.c +2 -2
index 6c00a8f..a640ae5 100644
@@ -8,11 +8,11 @@
 
 #ifdef CONFIG_SMP
 
-static DEFINE_PER_CPU(struct aperfmperf, old_perf);
+static DEFINE_PER_CPU(struct aperfmperf, old_perf_sched);
 
 static unsigned long scale_aperfmperf(void)
 {
-	struct aperfmperf val, *old = &__get_cpu_var(old_perf);
+	struct aperfmperf val, *old = &__get_cpu_var(old_perf_sched);
 	unsigned long ratio, flags;
 
 	local_irq_save(flags);