[PATCH 1/4] OMAP2+: clockdomain: Add an api to read idle mode

Santosh Shilimkar santosh.shilimkar at ti.com
Tue Apr 5 09:39:56 EDT 2011


On 4/5/2011 6:14 PM, Rajendra Nayak wrote:
> Add a clockdomain api to check if hardware supervised
> idle transitions are enabled on a clockdomain.
>
> Signed-off-by: Rajendra Nayak<rnayak at ti.com>
> ---
>   arch/arm/mach-omap2/clockdomain.c |   21 +++++++++++++++++++++
>   arch/arm/mach-omap2/clockdomain.h |    3 +++
>   2 files changed, 24 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c
> index ab87854..1de6def 100644
> --- a/arch/arm/mach-omap2/clockdomain.c
> +++ b/arch/arm/mach-omap2/clockdomain.c
> @@ -795,6 +795,27 @@ void clkdm_deny_idle(struct clockdomain *clkdm)
>   	arch_clkdm->clkdm_deny_idle(clkdm);
>   }
>
> +/**
> + * clkdm_is_idle - Check if the clkdm hwsup/autoidle is enabled
> + * @clkdm: struct clockdomain *
> + *
> + * Returns true if the clockdomain is in hardware-supervised
> + * idle mode, or 0 otherwise.
> + *
> + */
> +int clkdm_is_idle(struct clockdomain *clkdm)
 >
Name of the API not seems to fit correctly.
Shoule it be something like "clkdm_is_in_hwsup"?



More information about the linux-arm-kernel mailing list