sh: clock framework update, fix count and kill off kref
commit4f5ecaa05493dfddf155b40224b951592bfce325
authorMagnus Damm <damm@igel.co.jp>
Fri, 8 May 2009 08:23:29 +0000 (8 08:23 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 8 May 2009 08:46:22 +0000 (8 17:46 +0900)
tree8f37268849bc0fa6599e35e39cf01b01961ccb51
parent7d170b1bc540a1d83098a9f27cf4939e026fda81
sh: clock framework update, fix count and kill off kref

This patch updates the clock framework use count code.
With this patch the enable() and disable() callbacks
only get called when counting from and to zero.
While at it the kref stuff gets replaced with an int.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock.c