[PATCH v2] cpufreq: intel_pstate: Avoid unnecessary synchronize_sched() during initialization

2016-05-11 Thread Chen Yu
Currently in intel_pstate_clear_update_util_hook, after clearing the utilization update hook, we leverage synchronize_sched() to deal with synchronization, which is a little bit time-costly because synchronize_sched() has to wait for all the CPUs to go through a grace period. Actually, the

[PATCH v2] cpufreq: intel_pstate: Avoid unnecessary synchronize_sched() during initialization

2016-05-11 Thread Chen Yu
Currently in intel_pstate_clear_update_util_hook, after clearing the utilization update hook, we leverage synchronize_sched() to deal with synchronization, which is a little bit time-costly because synchronize_sched() has to wait for all the CPUs to go through a grace period. Actually, the