aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-16 07:36:06 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-16 07:37:25 -0500
commit34cb61359b503d7aff6447acb037a5efd6ce93b2 (patch)
tree88d72e4db5c969e4ccba5ee4c0a098e77adf6b16 /include/linux/sched.h
parente52fb7c097238d34f4d8e2a596f8a3f85b0c0565 (diff)
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index daf4e07bc978..5d56b54350a5 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1031,6 +1031,10 @@ struct sched_entity {
1031 u64 last_wakeup; 1031 u64 last_wakeup;
1032 u64 avg_overlap; 1032 u64 avg_overlap;
1033 1033
1034 u64 start_runtime;
1035 u64 avg_wakeup;
1036 u64 nr_migrations;
1037
1034#ifdef CONFIG_SCHEDSTATS 1038#ifdef CONFIG_SCHEDSTATS
1035 u64 wait_start; 1039 u64 wait_start;
1036 u64 wait_max; 1040 u64 wait_max;
@@ -1046,10 +1050,6 @@ struct sched_entity {
1046 u64 exec_max; 1050 u64 exec_max;
1047 u64 slice_max; 1051 u64 slice_max;
1048 1052
1049 u64 start_runtime;
1050 u64 avg_wakeup;
1051
1052 u64 nr_migrations;
1053 u64 nr_migrations_cold; 1053 u64 nr_migrations_cold;
1054 u64 nr_failed_migrations_affine; 1054 u64 nr_failed_migrations_affine;
1055 u64 nr_failed_migrations_running; 1055 u64 nr_failed_migrations_running;