Skip to content

Commit c2e5138

Browse files
Mario LeinweberIngo Molnar
authored andcommitted
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>
1 parent 083c6ee commit c2e5138

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/sched/cpudeadline.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ static void cpudl_heapify_down(struct cpudl *cp, int idx)
4242
return;
4343

4444
/* adapted from lib/prio_heap.c */
45-
while(1) {
45+
while (1) {
4646
u64 largest_dl;
47+
4748
l = left_child(idx);
4849
r = right_child(idx);
4950
largest = idx;
@@ -131,6 +132,7 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p,
131132
return 1;
132133
} else {
133134
int best_cpu = cpudl_maximum(cp);
135+
134136
WARN_ON(best_cpu != -1 && !cpu_present(best_cpu));
135137

136138
if (cpumask_test_cpu(best_cpu, &p->cpus_allowed) &&
@@ -205,6 +207,7 @@ void cpudl_set(struct cpudl *cp, int cpu, u64 dl)
205207
old_idx = cp->elements[cpu].idx;
206208
if (old_idx == IDX_INVALID) {
207209
int new_idx = cp->size++;
210+
208211
cp->elements[new_idx].dl = dl;
209212
cp->elements[new_idx].cpu = cpu;
210213
cp->elements[cpu].idx = new_idx;

0 commit comments

Comments
 (0)