Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223427
b: refs/heads/master
c: dbd87b5
h: refs/heads/master
i:
  223425: ba6cc33
  223423: 31c8376
v: v3
  • Loading branch information
Heiko Carstens authored and Ingo Molnar committed Dec 8, 2010
1 parent e7abb87 commit ece82f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f26f9aff6aaf67e9a430d16c266f91b13a5bff64
refs/heads/master: dbd87b5af055a0cc9bba17795c9a2b0d17795389
6 changes: 6 additions & 0 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,12 @@ unsigned long get_next_timer_interrupt(unsigned long now)
struct tvec_base *base = __get_cpu_var(tvec_bases);
unsigned long expires;

/*
* Pretend that there is no timer pending if the cpu is offline.
* Possible pending timers will be migrated later to an active cpu.
*/
if (cpu_is_offline(smp_processor_id()))
return now + NEXT_TIMER_MAX_DELTA;
spin_lock(&base->lock);
if (time_before_eq(base->next_timer, base->timer_jiffies))
base->next_timer = __next_timer_interrupt(base);
Expand Down

0 comments on commit ece82f9

Please sign in to comment.