Hi Rafael,
Here is the V2 with updated patches as suggested by you guys.
These are pushed here: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/governor-kobject
The first four patches are for 4.5, if possible and others you can keep for 4.6.
V1->V2: - Improved changelogs, thanks Rafael. - Added new dbs_data->mutex to avoid concurrent updates to tunables. - Moved kobj_type to common_dbs_data. - Updated macros to static inline routines - s/show/governor_show - s/store/governor_store - Improved comments
@Juri: More testing requested :)
Viresh Kumar (7): cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable cpufreq: governor: New sysfs show/store callbacks for governor tunables cpufreq: governor: Drop unused macros for creating governor tunable attributes Revert "cpufreq: Drop rwsem lock around CPUFREQ_GOV_POLICY_EXIT" cpufreq: Merge cpufreq_offline_prepare/finish routines cpufreq: Call __cpufreq_governor() with policy->rwsem held cpufreq: Remove cpufreq_governor_lock
drivers/cpufreq/cpufreq.c | 93 +++++++++++++---------------- drivers/cpufreq/cpufreq_conservative.c | 79 +++++++++---------------- drivers/cpufreq/cpufreq_governor.c | 105 +++++++++++++++++++++++++-------- drivers/cpufreq/cpufreq_governor.h | 104 ++++++++------------------------ drivers/cpufreq/cpufreq_ondemand.c | 79 +++++++++---------------- include/linux/cpufreq.h | 4 -- 6 files changed, 203 insertions(+), 261 deletions(-)