diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-18 18:48:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-18 18:45:32 -0500 |
commit | b2e3c0adec918ea22b6c9d7c76193dd3aaba9bd4 (patch) | |
tree | 1ef1bc12934820143ac49f2432fbc933090eabe3 /kernel | |
parent | a0a99b227da57f81319dd239bc4de811b0f530ec (diff) |
hrtimers: fix warning in kernel/hrtimer.c
this warning:
kernel/hrtimer.c: In function ‘hrtimer_cpu_notify’:
kernel/hrtimer.c:1574: warning: unused variable ‘dcpu’
is caused because 'dcpu' is only used in the CONFIG_HOTPLUG_CPU case.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/hrtimer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index b741f850426e..bda9cb924276 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -1571,7 +1571,7 @@ static void tickle_timers(void *arg) | |||
1571 | static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self, | 1571 | static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self, |
1572 | unsigned long action, void *hcpu) | 1572 | unsigned long action, void *hcpu) |
1573 | { | 1573 | { |
1574 | int dcpu, scpu = (long)hcpu; | 1574 | int scpu = (long)hcpu; |
1575 | 1575 | ||
1576 | switch (action) { | 1576 | switch (action) { |
1577 | 1577 | ||
@@ -1583,10 +1583,14 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self, | |||
1583 | #ifdef CONFIG_HOTPLUG_CPU | 1583 | #ifdef CONFIG_HOTPLUG_CPU |
1584 | case CPU_DEAD: | 1584 | case CPU_DEAD: |
1585 | case CPU_DEAD_FROZEN: | 1585 | case CPU_DEAD_FROZEN: |
1586 | { | ||
1587 | int dcpu; | ||
1588 | |||
1586 | clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu); | 1589 | clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu); |
1587 | dcpu = migrate_hrtimers(scpu); | 1590 | dcpu = migrate_hrtimers(scpu); |
1588 | smp_call_function_single(dcpu, tickle_timers, NULL, 0); | 1591 | smp_call_function_single(dcpu, tickle_timers, NULL, 0); |
1589 | break; | 1592 | break; |
1593 | } | ||
1590 | #endif | 1594 | #endif |
1591 | 1595 | ||
1592 | default: | 1596 | default: |