On 15 November 2013 14:05, Lan Tianyu <[email protected]> wrote: > Current, od_init() uses get_cpu_idle_time_us() to check whether > idle micro accouting is supported. The get_cpu_idle_time_us() > returns -1 only when tick nohz is disabled. This patch is to use > tick_nohz_check() directly to check nohz enable status instead of > get_cpu_idle_time_us(). This can avoid unnecessary getting and > putting cpu. > > Signed-off-by: Lan Tianyu <[email protected]> > --- > drivers/cpufreq/cpufreq_ondemand.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-)
Acked-by: Viresh Kumar <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

