Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b94e0753 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: remove cpu binding of pool refill kthreads"

parents 50d99abd 0ba9663f
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -679,17 +679,9 @@ static struct task_struct *ion_create_kworker(struct ion_page_pool **pools,
	struct task_struct *thread;
	int ret;
	char *buf;
	cpumask_t *cpumask;
	DECLARE_BITMAP(bmap, nr_cpumask_bits);

	attr.sched_nice = ION_KTHREAD_NICE_VAL;
	buf = cached ? "cached" : "uncached";
	/*
	 * Affine the kthreads to min capacity CPUs
	 * TODO: remove this hack once is_min_capability_cpu is available
	 */
	bitmap_fill(bmap, 0x4);
	cpumask = to_cpumask(bmap);

	thread = kthread_create(ion_sys_heap_worker, pools,
				"ion-pool-%s-worker", buf);
@@ -705,7 +697,7 @@ static struct task_struct *ion_create_kworker(struct ion_page_pool **pools,
			__func__, buf, ret);
		return ERR_PTR(ret);
	}
	kthread_bind_mask(thread, cpumask);

	return thread;
}

+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static int ion_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;

		if (i > 0) {
			pr_warn("Partial cmo only supported with 1 segment\n"
			pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
				"is dma_set_max_seg_size being set on dev:%s\n",
				dev_name(dev));
			return -EINVAL;