Skip to content

Commit

Permalink
sched: idle_at_tick is only used when CONFIG_SMP is set
Browse files Browse the repository at this point in the history
Impact: struct rq size optimization

The idle_at_tick in struct rq is only used in SMP settings
and it does not make sense to have this in the rq in an UP setup.

Signed-off-by: Henrik Austad <henrik@austad.us>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Henrik Austad authored and Ingo Molnar committed Feb 15, 2009
1 parent 5274f83 commit a0a522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ struct rq {
unsigned long nr_running;
#define CPU_LOAD_IDX_MAX 5
unsigned long cpu_load[CPU_LOAD_IDX_MAX];
unsigned char idle_at_tick;
#ifdef CONFIG_NO_HZ
unsigned long last_tick_seen;
unsigned char in_nohz_recently;
Expand Down Expand Up @@ -596,6 +595,7 @@ struct rq {
struct root_domain *rd;
struct sched_domain *sd;

unsigned char idle_at_tick;
/* For active balancing */
int active_balance;
int push_cpu;
Expand Down

0 comments on commit a0a522c

Please sign in to comment.