Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2922
b: refs/heads/master
c: be5b4fb
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 23, 2005
1 parent 5c48d34 commit 7fd8a5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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: dcd497f99a1ef29a7c5e76142965be77e9dacabd
refs/heads/master: be5b4fbd017d12e0d09ea0528a5839ce2ed2c8c8
2 changes: 1 addition & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ void fastcall add_preempt_count(int val)
/*
* Underflow?
*/
BUG_ON(((int)preempt_count() < 0));
BUG_ON((preempt_count() < 0));
preempt_count() += val;
/*
* Spinlock count overflowing soon?
Expand Down
8 changes: 6 additions & 2 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,14 @@ static inline void __run_timers(tvec_base_t *base)
detach_timer(timer, 1);
spin_unlock_irq(&base->t_base.lock);
{
u32 preempt_count = preempt_count();
int preempt_count = preempt_count();
fn(data);
if (preempt_count != preempt_count()) {
printk("huh, entered %p with %08x, exited with %08x?\n", fn, preempt_count, preempt_count());
printk(KERN_WARNING "huh, entered %p "
"with preempt_count %08x, exited"
" with %08x?\n",
fn, preempt_count,
preempt_count());
BUG();
}
}
Expand Down

0 comments on commit 7fd8a5f

Please sign in to comment.