softlockup: fix to allow compiling with !DETECT_HUNG_TASK
authorMandeep Singh Baines <msb@google.com>
Fri, 16 Jan 2009 17:09:38 +0000 (09:09 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 16 Jan 2009 17:17:34 +0000 (18:17 +0100)
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>
kernel/fork.c

index 1d68f1255dd824cf2fd1c06a1e6464bac718d26f..fb9444282836c10583fba42d04103b897baac0d0 100644 (file)
@@ -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