clk: abstract locking out into helper functions
authorMike Turquette <mturquette@linaro.org>
Thu, 28 Mar 2013 20:59:01 +0000 (13:59 -0700)
committerMike Turquette <mturquette@linaro.org>
Tue, 2 Apr 2013 17:23:08 +0000 (10:23 -0700)
commiteab89f690ee0805c02017d7959f4f930379a8c46
treeea9bf078de6212572fc4a095ab22540d62326d98
parent43c4120c0656692d08f5c005881cc0c4573ce3b5
clk: abstract locking out into helper functions

Create locking helpers for the global mutex and global spinlock.  The
definitions of these helpers will be expanded upon in the next patch
which introduces reentrancy into the locking scheme.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Cc: David Brown <davidb@codeaurora.org>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/clk/clk.c