cpuquiet: Clean up sysfs memory properly
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Tue, 17 Dec 2013 21:40:45 +0000 (13:40 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 18 May 2015 08:07:11 +0000 (16:07 +0800)
commit46f7d5dbded45dfbc239848e4875ec7e9e8a07a9
treecb02cc028bccb110cc16f0a4527079f736167738
parente7e8701d152b381f9e38d1bbb489e9a867b4e19b
cpuquiet: Clean up sysfs memory properly

Runnable sysfs node wasn't being free'd in stop via a kobject_put call
because the sysfs node wasn't allocated with kobject_create. Now do an
explicity kfree on stop after the kobject_put.

Change-Id: I5ba554312757380dfb2e814f75832b28d4c7edf8
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/346645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/cpuquiet/governors/runnable_threads.c