Commit 260bfad6 authored by xieliujie's avatar xieliujie
Browse files

ANDROID: vendor_hook: Add hooks to support reader optimistic spin in rwsem

Since upstream commit 617f3ef9 ("locking/rwsem: Remove
reader optimistic spinning"), vendors have seen increased
contention and blocking on rwsems.

There are attempts to actively fix this upstream:
  https://lore.kernel.org/lkml/20240406081126.8030-1-bongkyu7.kim@samsung.com/



But in the meantime, provide vendorhooks so that vendors can
implement their own optimistic spin routine. In doing so,
vendors see improvements in cold launch times on important apps.

Bug: 331742151
Change-Id: I7466413de9ee1293e86f73880931235d7a9142ac
Signed-off-by: default avatarxieliujie <xieliujie@oppo.com>
[jstultz: Rewrote commit message]
Signed-off-by: default avatarJohn Stultz <jstultz@google.com>
parent d0c6724b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment