From: Ingo Molnar <mingo@elte.hu>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Mike Galbraith <efault@gmx.de>,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] scheduler changes for v2.6.38
Date: Fri, 7 Jan 2011 00:53:32 +0100 [thread overview]
Message-ID: <20110106235332.GA15940@elte.hu> (raw)
In-Reply-To: <AANLkTinotRxScOHEb0HgFgSpGPkq_6jKTv5CfvnQM=ee@mail.gmail.com>
* Linus Torvalds <torvalds@linux-foundation.org> wrote:
> Ingo, can we please not do things like this:
>
> > diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
> > index 155a415..562c56e 100644
> > --- a/kernel/trace/trace_selftest.c
> > +++ b/kernel/trace/trace_selftest.c
> > @@ -558,7 +558,7 @@ trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr)
> > static int trace_wakeup_test_thread(void *data)
> > {
> > /* Make this a RT thread, doesn't need to be too high */
> > - struct sched_param param = { .sched_priority = 5 };
> > + static struct sched_param param = { .sched_priority = 5 };
> > struct completion *x = data;
> >
> > sched_setscheduler(current, SCHED_FIFO, ¶m);
> > diff --git a/kernel/watchdog.c b/kernel/watchdog.c
> > index 5b08215..c812c49 100644
> > --- a/kernel/watchdog.c
> > +++ b/kernel/watchdog.c
> > @@ -307,7 +307,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
> > */
> > static int watchdog(void *unused)
> > {
> > - struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
> > + static struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
> > struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);
> >
> > sched_setscheduler(current, SCHED_FIFO, ¶m);
>
> It's just nasty and horrible.
Agreed, and i keep flaming people every time i notice it. Alas here i didnt notice
it and it slipped through. Will fix it.
Thanks,
Ingo
prev parent reply other threads:[~2011-01-06 23:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 9:28 Ingo Molnar
2011-01-06 18:28 ` Linus Torvalds
2011-01-06 23:53 ` Ingo Molnar [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=20110106235332.GA15940@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/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®