924b9111a1
The 'userspace' governor adds a sysfs entry, which is removed when the governor is changed, or the devfreq device is released. However, when the latter occurs via device_unregister(), device_del() is called first, which removes the sysfs entries recursively and deletes the kobject. This means we get an Oops when the governor calls sysfs_remove_group() on the deleted kobject. Fix this by only doing the call when kobj *hasn't* been kobject_del()'d. Note that we can't just remove the call to sysfs_remove_group() entirely - it's needed for when the governor is changed to one which doesn't need a sysfs entry. Signed-off-by: Chris Diamand <chris.diamand@arm.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> |
||
---|---|---|
.. | ||
event | ||
devfreq-event.c | ||
devfreq.c | ||
exynos-bus.c | ||
governor.h | ||
governor_passive.c | ||
governor_performance.c | ||
governor_powersave.c | ||
governor_simpleondemand.c | ||
governor_userspace.c | ||
Kconfig | ||
Makefile | ||
rk3399_dmc.c | ||
tegra-devfreq.c |