Commit af432eb1cc3178ec7109aca2283aafb1c12ccac1

Authored by Mandeep Singh Baines
Committed by Ingo Molnar
1 parent e162b39a36

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1041,7 +1041,7 @@
1041 1041  
1042 1042 p->default_timer_slack_ns = current->timer_slack_ns;
1043 1043  
1044   -#ifdef CONFIG_DETECT_SOFTLOCKUP
  1044 +#ifdef CONFIG_DETECT_HUNG_TASK
1045 1045 p->last_switch_count = 0;
1046 1046 p->last_switch_timestamp = 0;
1047 1047 #endif