ANDROID: vendor_hooks: add hook tick_nohz_idle_stop_tick
This hook will allow to stop extra timers that is created during scheduler_tick.
The background is described as follows:
1) In some cases, we find the 4ms tick is not enough for task scheduling so we
will start a new timer in scheduler_tick to do extra task scheduling.
The hook in scheduler_tick already exists but when cpus enter idle, the timer
needs to be stopped for saving power (same logic as nohz idle).
2) We can get about 7% power saving without hurting the performance in certain
use case after enabled this feature.
3) Actually we are considering to upstream it to mainline kernel but it can
takes time to get really merged. An initial submit is preferred to get the
community noticed the potential optimized point.
Bug: 333160399
Change-Id: Ie97599ef562def39e13716adfc7cddef14b72075
Signed-off-by:
zhouxuewen <zhouxuewen@oppo.com>
Loading
Please sign in to comment