Skip to content

Commit

Permalink
hrtimer: removing all ur callback modes, fix
Browse files Browse the repository at this point in the history
> Ingo, this addition fixes the hotplug issue on my machine

And because we're all human...

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 8, 2008
1 parent 3781065 commit a0a99b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ static void tickle_timers(void *arg)
static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
{
int dcpu = -1, scpu = (long)hcpu;
int dcpu, scpu = (long)hcpu;

switch (action) {

Expand All @@ -1585,12 +1585,6 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
case CPU_DEAD_FROZEN:
clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu);
dcpu = migrate_hrtimers(scpu);
break;

case CPU_POST_DEAD:
if (dcpu == -1)
break;

smp_call_function_single(dcpu, tickle_timers, NULL, 0);
break;
#endif
Expand Down

0 comments on commit a0a99b2

Please sign in to comment.