From: Pavel Machek <pavel@ucw.cz>
To: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Cc: tglx@linutronix.de, Linux Kernel <linux-kernel@vger.kernel.org>,
Russell King <rmk@arm.linux.org.uk>
Subject: Re: [PATCH] Fix UCB1x00 driver to use sched_setscheduler
Date: Mon, 14 May 2007 11:21:09 +0200 [thread overview]
Message-ID: <20070514092109.GJ11735@elf.ucw.cz> (raw)
In-Reply-To: <87mz08e0qx.wl%takeuchi_satoru@jp.fujitsu.com>
Hi!
> > > 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, ¶m);
> >
> > Can we please remove the unused code completely instead of replacing it
> > by more commented out code ?
>
> It's OK to me, but I'm not the driver writer and doesn't know how important
> are those comments. If removing them is better for driver writers too, here
> is the patch.
I doubt anyone cares either way. Feel free to add my ACK to either
"remove" or "fix" version.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2007-05-14 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 10:39 Satoru Takeuchi
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 [this message]
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=20070514092109.GJ11735@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=takeuchi_satoru@jp.fujitsu.com \
--cc=tglx@linutronix.de \
/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®