Skip to content

cpufreq: More governor code reorganization

Rafael J. Wysocki linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12cpufreq: governor: Close dbs_data update race conditiondrivers/cpufreq/cpufreq_governor.c+1 -15 replies
2/12cpufreq: governor: Move io_is_busy to struct dbs_datadrivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h drivers/cpufreq/cpufreq_ondemand.c+15 -261 reply
3/12cpufreq: governor: Add a ->start callback for governorsdrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+22 -141 reply
4/12cpufreq: governor: Drop unused governor callback and data fieldsdrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.h drivers/cpufreq/cpufreq_ondemand.c+1 -191 reply
5/12cpufreq: ondemand: Drop one more callback from struct od_opsdrivers/cpufreq/cpufreq_governor.h drivers/cpufreq/cpufreq_ondemand.c+1 -31 reply
6/12cpufreq: governor: Fix CPU load information updates via ->storedrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+40 -282 replies
7/12cpufreq: ondemand: Rework the handling of powersave bias updatesdrivers/cpufreq/cpufreq_ondemand.c+13 -171 reply
8/12cpufreq: governor: Make governor private data per-policydrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+71 -243 replies
9/12cpufreq: governor: Move per-CPU data to the common codedrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+22 -551 reply
10/12cpufreq: governor: Relocate definitions of tuners structuresdrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.h drivers/cpufreq/cpufreq_ondemand.c+9 -103 replies
11/12cpufreq: governor: Make dbs_data_mutex staticdrivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h+1 -31 reply
12/12cpufreq: governor: Narrow down the dbs_data_mutex coveragedrivers/cpufreq/cpufreq_governor.c+27 -264 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchViresh Kumar
1/12A-b
2/12A-b
3/12A-b
4/12A-b
5/12A-b
6/12A-b
7/12A-b
8/12A-b A-b
9/12A-b
10/12A-b A-b
11/12A-b
12/12A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/12] cpufreq: More governor code reorganization

Hi,

This series continues the governor code reorganization I've been doing for the last couple of weeks.

Again, it doesn't change the way the code works fundamentally, but some minor changes in behavior may be noticeable.

[1/12] closes a race condition for dbs_data updates.

[2/12] moves the io_is_busy tunable to struct dbs_data.

[3/12] adds a ->start callback for governors to initialize governor-specific

       stuff and avoid the ugly governor == GOV_SOMETHING checks in the common
       code.

[4/12] drops unnecessary things from struct dbs_governor (and related stuff).

[5/12] drops an unnecessary ondemand operation callback.

[6/12] fixes the way some governor tunable sysfs attributes update CPU load info.

[7/12] fixes the way in which powersave bias updates are handled in ondemand.

[8/12] moves some data items from per-CPU structures to per-policy ones.

[9/12] rearranges the per-CPU structures (moves them to the common code which
is the only user of them now and drops several related things that aren't necessary any more).

[10/12] moves the definitions of "tuners" structures to governors.

[11/12] makes dbs_data_mutex static.

[12/12] reduces the dbs_data_mutex usage area and renames it.

Patches on top of the current linux-next branch of linux-pm.git, lightly tested on Toshiba Portege R500 with the ACPI driver.

Thanks,
Rafael