diff options
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index f9b014e3e700..8f76adf1c6a6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1056,7 +1056,11 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1056 | #endif | 1056 | #endif |
1057 | #ifdef CONFIG_TRACE_IRQFLAGS | 1057 | #ifdef CONFIG_TRACE_IRQFLAGS |
1058 | p->irq_events = 0; | 1058 | p->irq_events = 0; |
1059 | #ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW | ||
1060 | p->hardirqs_enabled = 1; | ||
1061 | #else | ||
1059 | p->hardirqs_enabled = 0; | 1062 | p->hardirqs_enabled = 0; |
1063 | #endif | ||
1060 | p->hardirq_enable_ip = 0; | 1064 | p->hardirq_enable_ip = 0; |
1061 | p->hardirq_enable_event = 0; | 1065 | p->hardirq_enable_event = 0; |
1062 | p->hardirq_disable_ip = _THIS_IP_; | 1066 | p->hardirq_disable_ip = _THIS_IP_; |