* [PATCH 3/4] ACPI: Convert int to bool for variable later used int kernel macro
@ 2015-01-22 8:51 Quentin Lambert
0 siblings, 0 replies; only message in thread
From: Quentin Lambert @ 2015-01-22 8:51 UTC (permalink / raw)
To: Zhang Rui, Robert Moore, Lv Zheng, Rafael J. Wysocki, Len Brown,
Shaohua Li
Cc: linux-acpi, devel, linux-kernel
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
---
drivers/acpi/acpi_pad.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
index c7b105c..82712a8 100644
--- a/drivers/acpi/acpi_pad.c
+++ b/drivers/acpi/acpi_pad.c
@@ -148,7 +148,7 @@ static unsigned int round_robin_time = 1; /* second */
static int power_saving_thread(void *data)
{
struct sched_param param = {.sched_priority = 1};
- int do_sleep;
+ bool do_sleep;
unsigned int tsk_index = (unsigned long)data;
u64 last_jiffies = 0;
@@ -167,7 +167,7 @@ static int power_saving_thread(void *data)
round_robin_cpu(tsk_index);
}
- do_sleep = 0;
+ do_sleep = false;
expire_time = jiffies + HZ * (100 - idle_pct) / 100;
@@ -202,7 +202,7 @@ static int power_saving_thread(void *data)
local_irq_enable();
if (time_before(expire_time, jiffies)) {
- do_sleep = 1;
+ do_sleep = true;
break;
}
}
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-22 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 8:51 [PATCH 3/4] ACPI: Convert int to bool for variable later used int kernel macro Quentin Lambert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).