aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index a0dad84567c9..802b1cf0e63f 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1061,7 +1061,11 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1061#endif 1061#endif
1062#ifdef CONFIG_TRACE_IRQFLAGS 1062#ifdef CONFIG_TRACE_IRQFLAGS
1063 p->irq_events = 0; 1063 p->irq_events = 0;
1064#ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW
1065 p->hardirqs_enabled = 1;
1066#else
1064 p->hardirqs_enabled = 0; 1067 p->hardirqs_enabled = 0;
1068#endif
1065 p->hardirq_enable_ip = 0; 1069 p->hardirq_enable_ip = 0;
1066 p->hardirq_enable_event = 0; 1070 p->hardirq_enable_event = 0;
1067 p->hardirq_disable_ip = _THIS_IP_; 1071 p->hardirq_disable_ip = _THIS_IP_;