cpufreq: interactive: fix NULL pointer dereference at sysfs ops
authorMinsung Kim <ms925.kim@samsung.com>
Sun, 19 Jan 2014 05:32:42 +0000 (14:32 +0900)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:00 +0000 (13:53 -0800)
commit8385286d765f9bd4cdb3eff094a000af32eb8c3b
tree702db66c1cc975e1190cfc5f169ec6f4967d5a85
parentef37f1f216d88f9353bf4ac81ce365482d0a9f49
cpufreq: interactive: fix NULL pointer dereference at sysfs ops

sysfs ops for target_loads and above_hispeed_delay can be called before
initializing tunables at CPUFREQ_GOV_POLICY_INIT. Create sysfs entries after
initialization.

Change-Id: I50356198d7629731c0d32a3066d61fe8354e0001
Signed-off-by: Minsung Kim <ms925.kim@samsung.com>
drivers/cpufreq/cpufreq_interactive.c