mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>,
	Russell King <rmk@arm.linux.org.uk>, Pavel Machek <pavel@ucw.cz>,
	Jordi Colomer <jco@ict.es>
Cc: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Subject: [PATCH] Fix UCB1x00 driver to use sched_setscheduler
Date: Fri, 11 May 2007 19:39:18 +0900	[thread overview]
Message-ID: <87ps57ejah.wl%takeuchi_satoru@jp.fujitsu.com> (raw)

Fix Touchscreen driver for UCB1x00-based touchscreens to use
sched_setscheduler() instead of setting the fields of task_struct directly.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

Index: linux-2.6.21-fix-ucb-drivers/drivers/mfd/ucb1x00-ts.c
===================================================================
--- linux-2.6.21-fix-ucb-drivers.orig/drivers/mfd/ucb1x00-ts.c	2007-05-11 18:53:36.000000000 +0900
+++ linux-2.6.21-fix-ucb-drivers/drivers/mfd/ucb1x00-ts.c	2007-05-11 19:33:20.000000000 +0900
@@ -214,8 +214,9 @@ static int ucb1x00_thread(void *_ts)
 	 * We could run as a real-time thread.  However, thus far
 	 * this doesn't seem to be necessary.
 	 */
-//	tsk->policy = SCHED_FIFO;
-//	tsk->rt_priority = 1;
+//	struct sched_param param = { .sched_priority = 1 };
+//
+//	sched_setscheduler(tsk, SCHED_FIFO, &param);
 
 	valid = 0;
 

             reply	other threads:[~2007-05-11 10:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11 10:39 Satoru Takeuchi [this message]
2007-05-11 11:32 ` Pavel Machek
2007-05-12 13:10 ` Thomas Gleixner
2007-05-13 23:56   ` Satoru Takeuchi
2007-05-14  9:21     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ps57ejah.wl%takeuchi_satoru@jp.fujitsu.com \
    --to=takeuchi_satoru@jp.fujitsu.com \
    --cc=jco@ict.es \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®