Skip to content

Commit

Permalink
sched,ion: Convert to sched_set_normal()
Browse files Browse the repository at this point in the history
In an attempt to take away sched_setscheduler() from modules, change
this into sched_set_normal(.nice = 19).

Cc: john.stultz@linaro.org
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Peter Zijlstra committed Jun 15, 2020
1 parent c3f47cf commit 9309de0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/android/ion/ion_heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ static int ion_heap_deferred_free(void *data)

int ion_heap_init_deferred_free(struct ion_heap *heap)
{
struct sched_param param = { .sched_priority = 0 };

INIT_LIST_HEAD(&heap->free_list);
init_waitqueue_head(&heap->waitqueue);
heap->task = kthread_run(ion_heap_deferred_free, heap,
Expand All @@ -255,7 +253,7 @@ int ion_heap_init_deferred_free(struct ion_heap *heap)
__func__);
return PTR_ERR_OR_ZERO(heap->task);
}
sched_setscheduler(heap->task, SCHED_IDLE, &param);
sched_set_normal(heap->task, 19);

return 0;
}
Expand Down

0 comments on commit 9309de0

Please sign in to comment.