cpuidle: governor: Add new governors to cpuidle_governors again
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Mar 2019 18:13:13 +0000 (19:13 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Mar 2019 22:46:55 +0000 (23:46 +0100)
commit22782b3f9bb8ae21c710e2880db21bc729771e92
treebf44d6cc854d42bfcf038bf177a95fc24e1615fe
parent814b8797f9863abc2877acf87f6be0f140d00139
cpuidle: governor: Add new governors to cpuidle_governors again

After commit 61cb5758d3c4 ("cpuidle: Add cpuidle.governor= command
line parameter") new cpuidle governors are not added to the list
of available governors, so governor selection via sysfs doesn't
work as expected (even though it is rarely used anyway).

Fix that by making cpuidle_register_governor() add new governors to
cpuidle_governors again.

Fixes: 61cb5758d3c4 ("cpuidle: Add cpuidle.governor= command line parameter")
Reported-by: Kees Cook <keescook@chromium.org>
Cc: 5.0+ <stable@vger.kernel.org> # 5.0+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governor.c