sched: clean up overlong line in kernel/sched_debug.c

2008-01-25 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=deeeccd41bd94a9db133d7b923f9a7479a47305d
Commit: deeeccd41bd94a9db133d7b923f9a7479a47305d
Parent: 4df64c0bfb7e0e260d10ebc005f7d0ba1308eed7
Author: Ingo Molnar [EMAIL PROTECTED]
AuthorDate: Fri Jan 25 21:08:15 2008 +0100
Committer:  Ingo Molnar [EMAIL PROTECTED]
CommitDate: Fri Jan 25 21:08:15 2008 +0100

sched: clean up overlong line in kernel/sched_debug.c

clean up overlong line in kernel/sched_debug.c.

Signed-off-by: Ingo Molnar [EMAIL PROTECTED]
---
 kernel/sched_rt.c |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 0749c18..b591b89 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -762,6 +762,7 @@ move_one_task_rt(struct rq *this_rq, int this_cpu, struct 
rq *busiest,
/* don't touch RT tasks */
return 0;
 }
+
 static void set_cpus_allowed_rt(struct task_struct *p, cpumask_t *new_mask)
 {
int weight = cpus_weight(*new_mask);
@@ -775,9 +776,9 @@ static void set_cpus_allowed_rt(struct task_struct *p, 
cpumask_t *new_mask)
if (p-se.on_rq  (weight != p-nr_cpus_allowed)) {
struct rq *rq = task_rq(p);
 
-   if ((p-nr_cpus_allowed = 1)  (weight  1))
+   if ((p-nr_cpus_allowed = 1)  (weight  1)) {
rq-rt.rt_nr_migratory++;
-   else if((p-nr_cpus_allowed  1)  (weight = 1)) {
+   } else if ((p-nr_cpus_allowed  1)  (weight = 1)) {
BUG_ON(!rq-rt.rt_nr_migratory);
rq-rt.rt_nr_migratory--;
}
@@ -788,6 +789,7 @@ static void set_cpus_allowed_rt(struct task_struct *p, 
cpumask_t *new_mask)
p-cpus_allowed= *new_mask;
p-nr_cpus_allowed = weight;
 }
+
 #else /* CONFIG_SMP */
 # define schedule_tail_balance_rt(rq)  do { } while (0)
 # define schedule_balance_rt(rq, prev) do { } while (0)
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


sched: clean up overlong line in kernel/sched_debug.c

2007-11-28 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c1a89740da168d3431f2f4e7c3b03daacbb55be1
Commit: c1a89740da168d3431f2f4e7c3b03daacbb55be1
Parent: deaf2227ddf657a260e923db44b6f0974d9bb782
Author: Ingo Molnar [EMAIL PROTECTED]
AuthorDate: Wed Nov 28 15:52:56 2007 +0100
Committer:  Ingo Molnar [EMAIL PROTECTED]
CommitDate: Wed Nov 28 15:52:56 2007 +0100

sched: clean up overlong line in kernel/sched_debug.c

clean up overlong line in kernel/sched_debug.c.

Signed-off-by: Ingo Molnar [EMAIL PROTECTED]
---
 kernel/sched_debug.c |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 5d0d623..d30467b 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -327,10 +327,12 @@ void proc_sched_show_task(struct task_struct *p, struct 
seq_file *m)
avg_atom = -1LL;
 
avg_per_cpu = p-se.sum_exec_runtime;
-   if (p-se.nr_migrations)
-   avg_per_cpu = div64_64(avg_per_cpu, 
p-se.nr_migrations);
-   else
+   if (p-se.nr_migrations) {
+   avg_per_cpu = div64_64(avg_per_cpu,
+  p-se.nr_migrations);
+   } else {
avg_per_cpu = -1LL;
+   }
 
__PN(avg_atom);
__PN(avg_per_cpu);
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html