Skip to content

Commit

Permalink
softlockup: fix to allow compiling with !DETECT_HUNG_TASK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mandeep Singh Baines authored and Ingo Molnar committed Jan 16, 2009
1 parent e162b39 commit af432eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af432eb

Please sign in to comment.