From: Paul Walmsley Date: Sun, 10 Jul 2011 11:56:54 +0000 (-0600) Subject: OMAP2+: clockdomain: add clkdm_in_hwsup() X-Git-Tag: v3.1-rc1~148^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a363c0f5b44cb4e9adfe238dfc4efa9270f7ae;p=pandora-kernel.git OMAP2+: clockdomain: add clkdm_in_hwsup() Add a new function, clkdm_in_hwsup(), that returns true if a clockdomain is configured for hardware-supervised idle. It does not actually read the hardware; rather, it checks an internal flag in the struct clockdomain, which is changed when the clockdomain is switched in and out of hardware-supervised idle. This should be safe, since all changes to the idle mode should pass through the clockdomain code. Based on a set of patches by Rajendra Nayak which do the same thing by checking the hardware bits. This approach should be faster and more compact. Signed-off-by: Paul Walmsley Cc: Rajendra Nayak Cc: Todd Poynor Cc: BenoƮt Cousson --- Reading git-diff-tree failed