diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2012-09-12 05:22:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-09-13 10:52:04 -0400 |
commit | f3e947867478af9a12b9956bcd000ac7613a8a95 (patch) | |
tree | 63fabb89439447e0f72c465e8b8d0852e9deff08 /kernel/fork.c | |
parent | 5ed4f1d96deee82ee92cd1ac1e0108c27e80e9b0 (diff) |
sched: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW
Now that the last architecture to use this has stopped doing so (ARM,
thanks Catalin!) we can remove this complexity from the scheduler
core.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Link: http://lkml.kernel.org/n/tip-g9p2a1w81xxbrze25v9zpzbf@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 2c8857e12855..743d48f4d711 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1280,11 +1280,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1280 | #endif | 1280 | #endif |
1281 | #ifdef CONFIG_TRACE_IRQFLAGS | 1281 | #ifdef CONFIG_TRACE_IRQFLAGS |
1282 | p->irq_events = 0; | 1282 | p->irq_events = 0; |
1283 | #ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW | ||
1284 | p->hardirqs_enabled = 1; | ||
1285 | #else | ||
1286 | p->hardirqs_enabled = 0; | 1283 | p->hardirqs_enabled = 0; |
1287 | #endif | ||
1288 | p->hardirq_enable_ip = 0; | 1284 | p->hardirq_enable_ip = 0; |
1289 | p->hardirq_enable_event = 0; | 1285 | p->hardirq_enable_event = 0; |
1290 | p->hardirq_disable_ip = _THIS_IP_; | 1286 | p->hardirq_disable_ip = _THIS_IP_; |