Commit 9309de08 authored by Peter Zijlstra's avatar Peter Zijlstra

sched,ion: Convert to sched_set_normal()

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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
parent c3f47cf9
...@@ -244,8 +244,6 @@ static int ion_heap_deferred_free(void *data) ...@@ -244,8 +244,6 @@ static int ion_heap_deferred_free(void *data)
int ion_heap_init_deferred_free(struct ion_heap *heap) int ion_heap_init_deferred_free(struct ion_heap *heap)
{ {
struct sched_param param = { .sched_priority = 0 };
INIT_LIST_HEAD(&heap->free_list); INIT_LIST_HEAD(&heap->free_list);
init_waitqueue_head(&heap->waitqueue); init_waitqueue_head(&heap->waitqueue);
heap->task = kthread_run(ion_heap_deferred_free, heap, heap->task = kthread_run(ion_heap_deferred_free, heap,
...@@ -255,7 +253,7 @@ int ion_heap_init_deferred_free(struct ion_heap *heap) ...@@ -255,7 +253,7 @@ int ion_heap_init_deferred_free(struct ion_heap *heap)
__func__); __func__);
return PTR_ERR_OR_ZERO(heap->task); return PTR_ERR_OR_ZERO(heap->task);
} }
sched_setscheduler(heap->task, SCHED_IDLE, &param); sched_set_normal(heap->task, 19);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment