Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366077
b: refs/heads/master
c: b22366c
h: refs/heads/master
i:
  366075: 1ef7f95
v: v3
  • Loading branch information
Frederic Weisbecker committed Mar 7, 2013
1 parent 38f43fe commit 679b3b2
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: 6c1e0256fad84a843d915414e4b5973b7443d48d
refs/heads/master: b22366cd54c6fe05db426f20adb10f461c19ec06
6 changes: 5 additions & 1 deletion trunk/kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3082,11 +3082,13 @@ EXPORT_SYMBOL(preempt_schedule);
asmlinkage void __sched preempt_schedule_irq(void)
{
struct thread_info *ti = current_thread_info();
enum ctx_state prev_state;

/* Catch callers which need to be fixed */
BUG_ON(ti->preempt_count || !irqs_disabled());

user_exit();
prev_state = exception_enter();

do {
add_preempt_count(PREEMPT_ACTIVE);
local_irq_enable();
Expand All @@ -3100,6 +3102,8 @@ asmlinkage void __sched preempt_schedule_irq(void)
*/
barrier();
} while (need_resched());

exception_exit(prev_state);
}

#endif /* CONFIG_PREEMPT */
Expand Down

0 comments on commit 679b3b2

Please sign in to comment.