Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126819
b: refs/heads/master
c: d5fd43c
h: refs/heads/master
i:
  126817: ae39a6a
  126815: 2e80a37
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 5, 2009
1 parent b0e70f8 commit c92f36f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bdec955b0da2ffbd10eb9b200651dd1f9e366f2
refs/heads/master: d5fd43c4ae04523e1dcd7794f9c511b289851350
19 changes: 8 additions & 11 deletions trunk/kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,11 @@ static void __cpuinit init_hrtimers_cpu(int cpu)

#ifdef CONFIG_HOTPLUG_CPU

static void tickle_timers(void *arg)
{
hrtimer_peek_ahead_timers();
}

static void migrate_hrtimer_list(struct hrtimer_clock_base *old_base,
struct hrtimer_clock_base *new_base)
{
Expand Down Expand Up @@ -1539,7 +1544,7 @@ static void migrate_hrtimer_list(struct hrtimer_clock_base *old_base,
}
}

static int migrate_hrtimers(int scpu)
static void migrate_hrtimers(int scpu)
{
struct hrtimer_cpu_base *old_base, *new_base;
int dcpu, i;
Expand Down Expand Up @@ -1567,12 +1572,7 @@ static int migrate_hrtimers(int scpu)
spin_unlock_irq(&new_base->lock);
put_cpu_var(hrtimer_bases);

return dcpu;
}

static void tickle_timers(void *arg)
{
hrtimer_peek_ahead_timers();
smp_call_function_single(dcpu, tickle_timers, NULL, 0);
}

#endif /* CONFIG_HOTPLUG_CPU */
Expand All @@ -1593,11 +1593,8 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
case CPU_DEAD:
case CPU_DEAD_FROZEN:
{
int dcpu;

clockevents_notify(CLOCK_EVT_NOTIFY_CPU_DEAD, &scpu);
dcpu = migrate_hrtimers(scpu);
smp_call_function_single(dcpu, tickle_timers, NULL, 0);
migrate_hrtimers(scpu);
break;
}
#endif
Expand Down

0 comments on commit c92f36f

Please sign in to comment.