Skip to content

Commit

Permalink
s390/idle: reduce size of s390_idle_data structure
Browse files Browse the repository at this point in the history
Avoid padding in the middle and the end of the data structure by
moving nohz_delay member to the beginning.
Saves eight byte per cpu.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 17, 2012
1 parent 0008204 commit 711d273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/cputime.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ static inline clock_t cputime64_to_clock_t(cputime64_t cputime)
}

struct s390_idle_data {
int nohz_delay;
unsigned int sequence;
unsigned long long idle_count;
unsigned long long idle_enter;
unsigned long long idle_exit;
unsigned long long idle_time;
int nohz_delay;
};

DECLARE_PER_CPU(struct s390_idle_data, s390_idle);
Expand Down

0 comments on commit 711d273

Please sign in to comment.