Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-31 Thread Rafael J. Wysocki
m: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > > >> Sent: Tuesday, July 30, 2013 5:28 PM > > >> To: Wang Dongsheng-B40534 > > >> Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > > >> Subject: Re: [PATCH] cpuidle:

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Rafael J. Wysocki
PM > >> To: Wang Dongsheng-B40534 > >> Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > >> Subject: Re: [PATCH] cpuidle: fix unremovable issue for module driver > >> > >> On 07/30/2013 08:55 AM, Dongsheng Wang wrote: > >

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
l.org; linuxppc-dev@lists.ozlabs.org >> Subject: Re: [PATCH] cpuidle: fix unremovable issue for module driver >> >> On 07/30/2013 08:55 AM, Dongsheng Wang wrote: >>> From: Wang Dongsheng >>> >>> After __cpuidle_register_device, the cpu incs are added up,

RE: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Tuesday, July 30, 2013 5:28 PM > To: Wang Dongsheng-B40534 > Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] cpuidle: fix unremovabl

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
On 07/30/2013 08:55 AM, Dongsheng Wang wrote: > From: Wang Dongsheng > > After __cpuidle_register_device, the cpu incs are added up, but decs > are not, thus the module refcount is not match. So the module "exit" > function can not be executed when we do remove operation. Move > module_put into _

[PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Dongsheng Wang
From: Wang Dongsheng After __cpuidle_register_device, the cpu incs are added up, but decs are not, thus the module refcount is not match. So the module "exit" function can not be executed when we do remove operation. Move module_put into __cpuidle_register_device to fix it. Signed-off-by: Wang D