Thread (35 messages) 35 messages, 5 authors, 2015-09-07

Re: [RFC PATCH 14/14] kthread_worker: Add set_kthread_worker_scheduler*()

flat view

From: Peter Zijlstra <hidden>
Date: 2015-07-28 19:48:31
Also in: linux-mm, lkml

On Tue, Jul 28, 2015 at 01:41:54PM -0400, Tejun Heo wrote:
On Tue, Jul 28, 2015 at 04:39:31PM +0200, Petr Mladek wrote:
quoted
+/**
+ * set_kthread_worker_scheduler - change the scheduling policy and/or RT
+ *	priority of a kthread worker.
+ * @worker: target kthread_worker
+ * @policy: new policy
+ * @sched_priority: new RT priority
+ *
+ * Return: 0 on success. An error code otherwise.
+ */
+int set_kthread_worker_scheduler(struct kthread_worker *worker,
+				 int policy, int sched_priority)
+{
+	return __set_kthread_worker_scheduler(worker, policy, sched_priority,
+					      true);
+}
Ditto.  I don't get why we would want these thin wrappers.
On top of which this is an obsolete interface :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help