diff options
author | Johannes Weiner <[email protected]> | 2008-01-17 15:21:08 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-01-17 15:38:58 -0800 |
commit | 6915719b36a97d28fab576c6fa2a20364b435fe6 (patch) | |
tree | 9c8938f57499b61247cc362677761a899c75b7f0 /net/unix/sysctl_net_unix.c | |
parent | d8c89eb3a12f0da96d049bd515c7fa3702e511c5 (diff) |
cpufreq: Initialise default governor before use
When the cpufreq driver starts up at boot time, it calls into the default
governor which might not be initialised yet. This hurts when the
governor's worker function relies on memory that is not yet set up by its
init function.
This migrates all governors from module_init() to fs_initcall() when being
the default, as was already done in cpufreq_performance when it was the
only possible choice. The performance governor is always initialized early
because it might be used as fallback even when not being the default.
Fixes at least one actual oops where ondemand is the default governor and
cpufreq_governor_dbs() uses the uninitialised kondemand_wq work-queue
during boot-time.
Signed-off-by: Johannes Weiner <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Venkatesh Pallipadi <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions