Skip to content

Commit

Permalink
sched: x86: Name old_perf in a unique way
Browse files Browse the repository at this point in the history
Silly percpu bits don't respect static..

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Sep 16, 2009
1 parent 51e0304 commit 7c423e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c423e9

Please sign in to comment.