Skip to content

Commit

Permalink
sched: Move a few runnable tg variables into CONFIG_SMP
Browse files Browse the repository at this point in the history
The following 2 variables are only used under CONFIG_SMP, so its
better to move their definiation into CONFIG_SMP too.

        atomic64_t load_avg;
        atomic_t runnable_avg;

Signed-off-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-3-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Alex Shi authored and Ingo Molnar committed Jun 27, 2013
1 parent 141965c commit fa6bdde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/sched/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ struct task_group {
unsigned long shares;

atomic_t load_weight;
#ifdef CONFIG_SMP
atomic64_t load_avg;
atomic_t runnable_avg;
#endif
#endif

#ifdef CONFIG_RT_GROUP_SCHED
struct sched_rt_entity **rt_se;
Expand Down

0 comments on commit fa6bdde

Please sign in to comment.