diff options
| -rw-r--r-- | drivers/staging/android/ion/ion_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_heap.c b/drivers/staging/android/ion/ion_heap.c index 296c74f98dc0..37e64d51394c 100644 --- a/drivers/staging/android/ion/ion_heap.c +++ b/drivers/staging/android/ion/ion_heap.c | |||
| @@ -243,12 +243,12 @@ int ion_heap_init_deferred_free(struct ion_heap *heap) | |||
| 243 | init_waitqueue_head(&heap->waitqueue); | 243 | init_waitqueue_head(&heap->waitqueue); |
| 244 | heap->task = kthread_run(ion_heap_deferred_free, heap, | 244 | heap->task = kthread_run(ion_heap_deferred_free, heap, |
| 245 | "%s", heap->name); | 245 | "%s", heap->name); |
| 246 | sched_setscheduler(heap->task, SCHED_IDLE, ¶m); | ||
| 247 | if (IS_ERR(heap->task)) { | 246 | if (IS_ERR(heap->task)) { |
| 248 | pr_err("%s: creating thread for deferred free failed\n", | 247 | pr_err("%s: creating thread for deferred free failed\n", |
| 249 | __func__); | 248 | __func__); |
| 250 | return PTR_RET(heap->task); | 249 | return PTR_RET(heap->task); |
| 251 | } | 250 | } |
| 251 | sched_setscheduler(heap->task, SCHED_IDLE, ¶m); | ||
| 252 | return 0; | 252 | return 0; |
| 253 | } | 253 | } |
| 254 | 254 | ||
