lkml.org 
[lkml]   [2015]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ACPI/PAD: power_saving_thread() is not freezable
Date
On Monday, October 26, 2015 04:02:01 AM Jiri Kosina wrote:
> From: Jiri Kosina <jkosina@suse.cz>
>
> power_saving_thread() calls try_to_freeze(), but the thread doesn't mark
> itself freezable through set_freezable(), so the try_to_freeze()
> call is useless.
>
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
> drivers/acpi/acpi_pad.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
> index ae307ff..8ea8211 100644
> --- a/drivers/acpi/acpi_pad.c
> +++ b/drivers/acpi/acpi_pad.c
> @@ -148,8 +148,6 @@ static int power_saving_thread(void *data)
> while (!kthread_should_stop()) {
> unsigned long expire_time;
>
> - try_to_freeze();
> -
> /* round robin to cpus */
> expire_time = last_jiffies + round_robin_time * HZ;
> if (time_before(expire_time, jiffies)) {
>

Applied, thanks!

Rafael



\
 
 \ /
  Last update: 2015-10-28 04:21    [W:0.054 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site