PM / cpuidle: Add driver reference counter
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Jun 2012 13:20:11 +0000 (15:20 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 3 Jul 2012 17:06:25 +0000 (19:06 +0200)
commit6e797a078824b30afbfae6cc4b1c2b21c51761ef
tree7f58824b2c1e62b954683900024a5b97a4d30b4d
parentdc7fd275ae60ef8edf952aff2a62462f5d892fd4
PM / cpuidle: Add driver reference counter

Add a reference counter for the cpuidle driver, so that it can't
be unregistered when it is in use.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/cpuidle/driver.c
include/linux/cpuidle.h