diff mbox

[2/2] cpuidle: export cpuidle_idle_call symbol

Message ID 1374571681-31911-2-git-send-email-dongsheng.wang@freescale.com (mailing list archive)
State Superseded
Headers show

Commit Message

Dongsheng Wang July 23, 2013, 9:28 a.m. UTC
From: Wang Dongsheng <dongsheng.wang@freescale.com>

Export cpuidle_idle_call symbol, make this function can be invoked
in the module.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
---
Branch: pm-cpuidle

 drivers/cpuidle/cpuidle.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rafael J. Wysocki July 23, 2013, 9:33 p.m. UTC | #1
On Tuesday, July 23, 2013 05:28:01 PM Dongsheng Wang wrote:
> From: Wang Dongsheng <dongsheng.wang@freescale.com>
> 
> Export cpuidle_idle_call symbol, make this function can be invoked
> in the module.

Why?

Rafael


> Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
> ---
> Branch: pm-cpuidle
> 
>  drivers/cpuidle/cpuidle.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
> index 534320a..d0a61d6 100644
> --- a/drivers/cpuidle/cpuidle.c
> +++ b/drivers/cpuidle/cpuidle.c
> @@ -168,6 +168,7 @@ int cpuidle_idle_call(void)
>  
>  	return 0;
>  }
> +EXPORT_SYMBOL_GPL(cpuidle_idle_call);
>  
>  /**
>   * cpuidle_install_idle_handler - installs the cpuidle idle loop handler
>
Wang Dongsheng-B40534 July 24, 2013, 2:17 a.m. UTC | #2
> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
> Sent: Wednesday, July 24, 2013 5:33 AM
> To: Wang Dongsheng-B40534
> Cc: daniel.lezcano@linaro.org; linux-pm@vger.kernel.org; linuxppc-
> dev@lists.ozlabs.org
> Subject: Re: [PATCH 2/2] cpuidle: export cpuidle_idle_call symbol
> 
> On Tuesday, July 23, 2013 05:28:01 PM Dongsheng Wang wrote:
> > From: Wang Dongsheng <dongsheng.wang@freescale.com>
> >
> > Export cpuidle_idle_call symbol, make this function can be invoked in
> > the module.
> 
> Why?
> 
On powerpc platform, there is already have cpu idle implementation.

I want use cpuidle framework to control various low power modes. But need to
be compatible with the current implementation. And driver should be as a module,
The user can using this module at any time.

We need cpuidle_idle_call to drive the new implementation in modules.

Thanks.
- dongsheng

> Rafael
diff mbox

Patch

diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index 534320a..d0a61d6 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -168,6 +168,7 @@  int cpuidle_idle_call(void)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(cpuidle_idle_call);
 
 /**
  * cpuidle_install_idle_handler - installs the cpuidle idle loop handler