mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
a0a99b227d
commit
b2e3c0adec
@ -1571,7 +1571,7 @@ static void tickle_timers(void *arg)
|
|||||||
static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
|
static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
|
||||||
unsigned long action, void *hcpu)
|
unsigned long action, void *hcpu)
|
||||||
{
|
{
|
||||||
int dcpu, scpu = (long)hcpu;
|
int scpu = (long)hcpu;
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
|
||||||
@ -1583,10 +1583,14 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
|
|||||||
#ifdef CONFIG_HOTPLUG_CPU
|
#ifdef CONFIG_HOTPLUG_CPU
|
||||||
case CPU_DEAD:
|
case CPU_DEAD:
|
||||||
case CPU_DEAD_FROZEN:
|
case CPU_DEAD_FROZEN:
|
||||||
|
{
|
||||||
|
int dcpu;
|
||||||
|
|
||||||
clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu);
|
clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu);
|
||||||
dcpu = migrate_hrtimers(scpu);
|
dcpu = migrate_hrtimers(scpu);
|
||||||
smp_call_function_single(dcpu, tickle_timers, NULL, 0);
|
smp_call_function_single(dcpu, tickle_timers, NULL, 0);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user