]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: Drop unused cpuidle_driver_ref/unref() functions
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Jan 2020 20:42:16 +0000 (21:42 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Jan 2020 15:47:22 +0000 (16:47 +0100)
commit4b7139514e8dffb98c5cd0470edcb0209b4e7066
treeadaa29034f8389ff3cb1622ed670753388105ba5
parentc98ddbd1688b8eda15357877ec62f1158e165e49
cpuidle: Drop unused cpuidle_driver_ref/unref() functions

The cpuidle_driver_ref() and cpuidle_driver_unref() functions are not
used and the refcnt field in struct cpuidle_driver operated by them
is not updated anywhere else (so it is permanently equal to 0), so
drop both of them along with refcnt.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/cpuidle/driver.c
include/linux/cpuidle.h