[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1160318579.3693.8.camel@c-67-180-230-165.hsd1.ca.comcast.net>
Date: Sun, 08 Oct 2006 07:42:59 -0700
From: Daniel Walker <dwalker@...sta.com>
To: tglx@...utronix.de
Cc: akpm@...l.org, johnstul@...ibm.com, mingo@...e.hu,
zippel@...ux-m68k.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: + clocksource-initialize-list-value.patch added to -mm tree
On Sun, 2006-10-08 at 11:50 +0200, Thomas Gleixner wrote:
> On Fri, 2006-10-06 at 18:53 -0700, akpm@...l.org wrote:
> > A change to clocksource initialization. It's optional for new clocksources,
> > but prefered. If the list field is initialized it allows clocksource_register
> > to complete faster since it doesn't have the scan the list of clocks doing
> > strcmp on each.
>
> Either make it required or not.
This is for compatability with all those clocksources people are writing
that just haven't been released (assuming they will be eventually
released). I would love to make this required.
> > diff -puN arch/i386/kernel/hpet.c~clocksource-initialize-list-value arch/i386/kernel/hpet.c
> > --- a/arch/i386/kernel/hpet.c~clocksource-initialize-list-value
> > +++ a/arch/i386/kernel/hpet.c
> > @@ -27,6 +27,7 @@ static struct clocksource clocksource_hp
> > .mult = 0, /* set below */
> > .shift = HPET_SHIFT,
> > .is_continuous = 1,
> > + .list = CLOCKSOURCE_LIST_INIT(clocksource_hpet.list),
> ...
> > +/* Abstracted list initialization */
> > +#define CLOCKSOURCE_LIST_INIT(x) LIST_HEAD_INIT(x)
> > +
>
> Please use LIST_HEAD_INIT(). This is not an abstraction, this is an
> obfuscation.
The reason it's there is to make the list->plist or plist->list
transition easier. I'd be happy to remove when I feel that's settled,
which may be right now.
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists