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

Skip to content
Commit bda56cb5 authored by Prasad Sodagudi's avatar Prasad Sodagudi Committed by Gerrit - the friendly Code Review server
Browse files

arm64: Add padding to thread_info structure



Both flags and preempt_count variables of thread_info are falling
into the same cache line. When one of the cores is incrementing/
decrementing the preempt_count continuously in a tight loop with
spin_lock_irqsave() and spin_unlock_irqrestore() APIs, this causes the
flags update to be delayed. When the thread_info flags updates are
delayed, it leads to increased tasks scheduling latencies. So move the
thread_info's preempt_count into different cache line by adding padding.

Change-Id: I950d15a02b4df0c31862c3a11eb1a3d8fc17dff8
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent a84e7ded
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