Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146043
b: refs/heads/master
c: 17487bf
h: refs/heads/master
i:
  146041: 144c513
  146039: 8bb2f15
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 20, 2009
1 parent 5b9b184 commit 9649a00
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 23de29de2d8b227943be191d59fb6d983996d55e
refs/heads/master: 17487bfeb6cfb05920e6a9d5a54f345f2917b4e7
4 changes: 3 additions & 1 deletion trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,9 @@ rb_reserve_next_event(struct ring_buffer_per_cpu *cpu_buffer,

static int trace_irq_level(void)
{
return hardirq_count() + softirq_count() + in_nmi();
return (hardirq_count() >> HARDIRQ_SHIFT) +
(softirq_count() >> + SOFTIRQ_SHIFT) +
!!in_nmi();
}

static int trace_recursive_lock(void)
Expand Down

0 comments on commit 9649a00

Please sign in to comment.