ANDROID: sched/walt: make walt_ktime_suspended __read_mostly
authorTodd Poynor <toddpoynor@google.com>
Tue, 11 Apr 2017 01:31:28 +0000 (18:31 -0700)
committerTodd Poynor <toddpoynor@google.com>
Wed, 12 Apr 2017 02:04:46 +0000 (02:04 +0000)
commit932dceef4c2bc794e4e31087dac5351d0676c405
tree26ea7b069922a5bb7ccb864dd9d1deb4b8027c45
parent5b10152c522ec0abda8782157b1c3e3018cf8deb
ANDROID: sched/walt: make walt_ktime_suspended __read_mostly

Most walt variables in hot code paths are __read_mostly and grouped
together in the .data section, including these variables that show
up as frequently accessed in gem5 simulation: walt_ravg_window,
walt_disabled, walt_account_wait_time, and
walt_freq_account_wait_time.

The exception is walt_ktime_suspended, which is also accessed in many
of the same hot paths.  It is also almost entirely accessed by reads.
Move it to __read_mostly in hopes of keeping it in the same cache line
as the other hot data.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
kernel/sched/walt.c