diff options
author | Mario Leinweber <marioleinweber@web.de> | 2018-03-02 13:20:07 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-03-03 09:50:20 -0500 |
commit | c2e513821d5df5e772287f6d0c23fd17b7c2bb1a (patch) | |
tree | e8616101310a04e4d6f87158e22ecd6ff4a17d90 | |
parent | 083c6eeab2cc13894618d188b854f2fc6b5b2303 (diff) |
sched/deadline: Clean up various coding style details
- Fixed style error: Missing space before the open parenthesis
- Fixed style warnings: 2x Missing blank line after declaration
One warning left: else after return
(I don't feel comfortable fixing that without side effects)
Signed-off-by: Mario Leinweber <marioleinweber@web.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180302182007.28691-1-marioleinweber@web.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/sched/cpudeadline.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c index 8d9562d890d3..6a9defebbb54 100644 --- a/kernel/sched/cpudeadline.c +++ b/kernel/sched/cpudeadline.c | |||
@@ -42,8 +42,9 @@ static void cpudl_heapify_down(struct cpudl *cp, int idx) | |||
42 | return; | 42 | return; |
43 | 43 | ||
44 | /* adapted from lib/prio_heap.c */ | 44 | /* adapted from lib/prio_heap.c */ |
45 | while(1) { | 45 | while (1) { |
46 | u64 largest_dl; | 46 | u64 largest_dl; |
47 | |||
47 | l = left_child(idx); | 48 | l = left_child(idx); |
48 | r = right_child(idx); | 49 | r = right_child(idx); |
49 | largest = idx; | 50 | largest = idx; |
@@ -131,6 +132,7 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p, | |||
131 | return 1; | 132 | return 1; |
132 | } else { | 133 | } else { |
133 | int best_cpu = cpudl_maximum(cp); | 134 | int best_cpu = cpudl_maximum(cp); |
135 | |||
134 | WARN_ON(best_cpu != -1 && !cpu_present(best_cpu)); | 136 | WARN_ON(best_cpu != -1 && !cpu_present(best_cpu)); |
135 | 137 | ||
136 | if (cpumask_test_cpu(best_cpu, &p->cpus_allowed) && | 138 | if (cpumask_test_cpu(best_cpu, &p->cpus_allowed) && |
@@ -205,6 +207,7 @@ void cpudl_set(struct cpudl *cp, int cpu, u64 dl) | |||
205 | old_idx = cp->elements[cpu].idx; | 207 | old_idx = cp->elements[cpu].idx; |
206 | if (old_idx == IDX_INVALID) { | 208 | if (old_idx == IDX_INVALID) { |
207 | int new_idx = cp->size++; | 209 | int new_idx = cp->size++; |
210 | |||
208 | cp->elements[new_idx].dl = dl; | 211 | cp->elements[new_idx].dl = dl; |
209 | cp->elements[new_idx].cpu = cpu; | 212 | cp->elements[new_idx].cpu = cpu; |
210 | cp->elements[cpu].idx = new_idx; | 213 | cp->elements[cpu].idx = new_idx; |