]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: TMU: Introduce clocksource/clock events suspend/resume routines
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 5 Aug 2012 23:41:20 +0000 (01:41 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Aug 2012 09:10:36 +0000 (11:10 +0200)
commit2456ac50872a774af2140076864aa56ee7bcad6e
tree9825654efa3552344a9b9ef3f6c0af42a773b78f
parentd8fb12288ac31b5060fd5dfb25eb2a2fa57c7ad6
sh: TMU: Introduce clocksource/clock events suspend/resume routines

Introduce suspend/resume routines for SH TMU clock source and
clock event device such that if those devices belong to a PM domain,
the generic PM domains framework will be notified that the given
domain may be turned off (during system suspend) or that it has to
be turned on (during system resume).

This change allows the A4R domain on SH7372 to be turned off during
system suspend (tested on the Mackerel board) if the TMU clock source
and/or clock event device is in use.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
drivers/clocksource/sh_tmu.c