Message ID | 1374571681-31911-2-git-send-email-dongsheng.wang@freescale.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
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 >
> -----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 --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