Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287642
b: refs/heads/master
c: 6fe5f5f
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Feb 14, 2012
1 parent 98f13bc commit 7a991d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 7a768d30caa30e66ba89659f1845cc35b1bfc715
refs/heads/master: 6fe5f5f3ffade25aa94526010f219df3be521bf7
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ static inline notrace void set_soft_enabled(unsigned long enable)
static inline notrace void decrementer_check_overflow(void)
{
u64 now = get_tb_or_rtc();
u64 *next_tb = &__get_cpu_var(decrementers_next_tb);
u64 *next_tb;

preempt_disable();
next_tb = &__get_cpu_var(decrementers_next_tb);

if (now >= *next_tb)
set_dec(1);
preempt_enable();
}

notrace void arch_local_irq_restore(unsigned long en)
Expand Down

0 comments on commit 7a991d4

Please sign in to comment.