|
@@ -849,7 +849,7 @@ extern struct user_struct root_user;
|
|
|
struct backing_dev_info;
|
|
|
struct reclaim_state;
|
|
|
|
|
|
-#if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT)
|
|
|
+#ifdef CONFIG_SCHED_INFO
|
|
|
struct sched_info {
|
|
|
/* cumulative counters */
|
|
|
unsigned long pcount; /* # of times run on this cpu */
|
|
@@ -859,7 +859,7 @@ struct sched_info {
|
|
|
unsigned long long last_arrival,/* when we last ran on a cpu */
|
|
|
last_queued; /* when we were last queued to run */
|
|
|
};
|
|
|
-#endif /* defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) */
|
|
|
+#endif /* CONFIG_SCHED_INFO */
|
|
|
|
|
|
#ifdef CONFIG_TASK_DELAY_ACCT
|
|
|
struct task_delay_info {
|
|
@@ -1408,7 +1408,7 @@ struct task_struct {
|
|
|
int rcu_tasks_idle_cpu;
|
|
|
#endif /* #ifdef CONFIG_TASKS_RCU */
|
|
|
|
|
|
-#if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT)
|
|
|
+#ifdef CONFIG_SCHED_INFO
|
|
|
struct sched_info sched_info;
|
|
|
#endif
|
|
|
|