Messages in this thread | | | Date | Fri, 15 Nov 2013 16:06:10 +0530 | Subject | Re: [PATCH V2 2/2] Cpufreq/gov: use tick_nohz_check() to check idle micro accouting support | From | Viresh Kumar <> |
| |
On 15 November 2013 14:05, Lan Tianyu <tianyu.lan@intel.com> 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 <tianyu.lan@intel.com> > --- > drivers/cpufreq/cpufreq_ondemand.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
| |