summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorMandeep Singh Baines <msb@google.com>2009-01-16 09:09:38 -0800
committerIngo Molnar <mingo@elte.hu>2009-01-16 18:17:34 +0100
commitaf432eb1cc3178ec7109aca2283aafb1c12ccac1 (patch)
tree32b290ae6c1f07667b7e6044cc94e4efee58edfc /kernel/fork.c
parente162b39a368f0401e41b558f430c354d12a85b37 (diff)
downloadop-kernel-dev-af432eb1cc3178ec7109aca2283aafb1c12ccac1.zip
op-kernel-dev-af432eb1cc3178ec7109aca2283aafb1c12ccac1.tar.gz
softlockup: fix to allow compiling with !DETECT_HUNG_TASK
Fixes the following compile error: kernel/fork.c:1049: error: 'struct task_struct' has no member named 'last_switch_count' kernel/fork.c:1050: error: 'struct task_struct' has no member named 'last_switch_timestamp' Signed-off-by: Mandeep Singh Baines <msb@google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 1d68f12..fb94442 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1041,7 +1041,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
p->default_timer_slack_ns = current->timer_slack_ns;
-#ifdef CONFIG_DETECT_SOFTLOCKUP
+#ifdef CONFIG_DETECT_HUNG_TASK
p->last_switch_count = 0;
p->last_switch_timestamp = 0;
#endif
OpenPOWER on IntegriCloud