Skip to content
Commit 1f3b0f82 authored by Gaurav Jindal's avatar Gaurav Jindal Committed by Thomas Gleixner
Browse files

tick/nohz: Optimize nohz idle enter



tick_nohz_start_idle is called before checking whether the idle tick can be
stopped. If the tick cannot be stopped, calling tick_nohz_start_idle() is
pointless and just wasting CPU cycles.

Only invoke tick_nohz_start_idle() when can_stop_idle_tick() returns true. A
short one minute observation of the effect on ARM64 shows a reduction of calls
by 1.5% thus optimizing the idle entry sequence.

[tglx: Massaged changelog ]

Co-developed-by: default avatarSanjeev <Yadav&lt;sanjeev.yadav@spreadtrum.com>
Signed-off-by: default avatarGaurav <Jindal&lt;gaurav.jindal@spreadtrum.com>
Link: http://lkml.kernel.org/r/20160714120416.GB21099@gaurav.jindal@spreadtrum.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 775be506
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment