Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 932dceef authored by Todd Poynor's avatar Todd Poynor
Browse files

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: default avatarTodd Poynor <toddpoynor@google.com>
parent 5b10152c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment