sched: fix !CONFIG_SCHEDSTATS build failure
authorIngo Molnar <mingo@elte.hu>
Fri, 16 Jan 2009 12:36:06 +0000 (13:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 16 Jan 2009 12:37:25 +0000 (13:37 +0100)
commit34cb61359b503d7aff6447acb037a5efd6ce93b2
tree88d72e4db5c969e4ccba5ee4c0a098e77adf6b16
parente52fb7c097238d34f4d8e2a596f8a3f85b0c0565
sched: fix !CONFIG_SCHEDSTATS build failure

Stephen Rothwell reported this linux-next build failure with !CONFIG_SCHEDSTATS:

| In file included from kernel/sched.c:1703:
| kernel/sched_fair.c: In function 'adaptive_gran':
| kernel/sched_fair.c:1324: error: 'struct sched_entity' has no member named 'avg_wakeup'

The start_runtime and avg_wakeup metrics are now not just for statistics,
but also for scheduling - so they always need to be available. (Also
move out the nr_migrations fields - for future perfcounters usage.)

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h