]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM: Reference counting of power.subsys_data
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Aug 2011 08:28:25 +0000 (10:28 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 18 Aug 2011 08:28:25 +0000 (10:28 +0200)
commit7d55c42834ea3d6af49ec22397a31a1716fe736a
treee418b98c3bd6f95881cf254d6b8c52016b716766
parent221291c239e09823ac05e45105105d7238b5760e
PM: Reference counting of power.subsys_data

Since the power.subsys_data device field will be used by multiple
filesystems, introduce a reference counting mechanism for it to avoid
freeing it prematurely or changing its value at a wrong time.

Make the PM clocks management code that currently is the only user of
power.subsys_data use the new reference counting.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/Makefile
drivers/base/power/clock_ops.c
drivers/base/power/common.c [new file with mode: 0644]
include/linux/pm.h