Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360756
b: refs/heads/master
c: 74eed01
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 21, 2013
1 parent 4c6284d commit a940d8c
Show file tree
Hide file tree
Showing 2 changed files with 12 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: e5ab012c3271990e8457055c25cafddc1ae8aa6b
refs/heads/master: 74eed0163d0def3fce27228d9ccf3d36e207b286
11 changes: 11 additions & 0 deletions trunk/kernel/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,14 @@ static inline void invoke_softirq(void)
*/
void irq_exit(void)
{
#ifndef __ARCH_IRQ_EXIT_IRQS_DISABLED
unsigned long flags;

local_irq_save(flags);
#else
WARN_ON_ONCE(!irqs_disabled());
#endif

account_irq_exit_time(current);
trace_hardirq_exit();
sub_preempt_count(IRQ_EXIT_OFFSET);
Expand All @@ -354,6 +362,9 @@ void irq_exit(void)
#endif
rcu_irq_exit();
sched_preempt_enable_no_resched();
#ifndef __ARCH_IRQ_EXIT_IRQS_DISABLED
local_irq_restore(flags);
#endif
}

/*
Expand Down

0 comments on commit a940d8c

Please sign in to comment.