[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1304100062.19359.6.camel@localhost.localdomain>
Date: Sat, 30 Apr 2011 00:01:02 +0600
From: Rakib Mullick <rakib.mullick@...il.com>
To: Ingo Molnar <mingo@...e.hu>
Cc: Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] sched: Use proper type for runqueue's idle_at_tick.
Searching over scheduler code for uses of idle_at_tick, tells that its been used for making TRUE/FALSE decision. But, its been declared as 'unsigned char', using 'bool' is more rational here. So, for consistency use 'bool' as idle_at_tick type instead of 'unsigned char'.
Signed-off-by: Rakib Mullick <rakib.mullick@...il.com>
---
diff --git a/kernel/sched.c b/kernel/sched.c
index 8cb0a57..d9f7f98 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -505,7 +505,7 @@ struct rq {
unsigned long cpu_power;
- unsigned char idle_at_tick;
+ bool idle_at_tick;
/* For active balancing */
int post_schedule;
int active_balance;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists