Loading drivers/staging/android/ion/Kconfig +8 −0 Original line number Diff line number Diff line Loading @@ -55,3 +55,11 @@ config ION_FORCE_DMA_SYNC We generally don't want to enable this config as it breaks the cache maintenance model. If you're not sure say N here. config ION_DEFER_FREE_NO_SCHED_IDLE bool "Increases the priority of ION defer free thead" depends on ION help Choose this option to remove the SCHED_IDLE flag in case of defer free thereby increasing the priority of defer free thread. if you're not sure say Y here. drivers/staging/android/ion/ion_heap.c +4 −1 Original line number Diff line number Diff line Loading @@ -250,8 +250,9 @@ static int ion_heap_deferred_free(void *data) int ion_heap_init_deferred_free(struct ion_heap *heap) { #ifndef CONFIG_ION_DEFER_FREE_NO_SCHED_IDLE struct sched_param param = { .sched_priority = 0 }; #endif INIT_LIST_HEAD(&heap->free_list); init_waitqueue_head(&heap->waitqueue); heap->task = kthread_run(ion_heap_deferred_free, heap, Loading @@ -261,7 +262,9 @@ int ion_heap_init_deferred_free(struct ion_heap *heap) __func__); return PTR_ERR_OR_ZERO(heap->task); } #ifndef CONFIG_ION_DEFER_FREE_NO_SCHED_IDLE sched_setscheduler(heap->task, SCHED_IDLE, ¶m); #endif return 0; } Loading Loading
drivers/staging/android/ion/Kconfig +8 −0 Original line number Diff line number Diff line Loading @@ -55,3 +55,11 @@ config ION_FORCE_DMA_SYNC We generally don't want to enable this config as it breaks the cache maintenance model. If you're not sure say N here. config ION_DEFER_FREE_NO_SCHED_IDLE bool "Increases the priority of ION defer free thead" depends on ION help Choose this option to remove the SCHED_IDLE flag in case of defer free thereby increasing the priority of defer free thread. if you're not sure say Y here.
drivers/staging/android/ion/ion_heap.c +4 −1 Original line number Diff line number Diff line Loading @@ -250,8 +250,9 @@ static int ion_heap_deferred_free(void *data) int ion_heap_init_deferred_free(struct ion_heap *heap) { #ifndef CONFIG_ION_DEFER_FREE_NO_SCHED_IDLE struct sched_param param = { .sched_priority = 0 }; #endif INIT_LIST_HEAD(&heap->free_list); init_waitqueue_head(&heap->waitqueue); heap->task = kthread_run(ion_heap_deferred_free, heap, Loading @@ -261,7 +262,9 @@ int ion_heap_init_deferred_free(struct ion_heap *heap) __func__); return PTR_ERR_OR_ZERO(heap->task); } #ifndef CONFIG_ION_DEFER_FREE_NO_SCHED_IDLE sched_setscheduler(heap->task, SCHED_IDLE, ¶m); #endif return 0; } Loading