* Re: + clocksource-initialize-list-value.patch added to -mm tree [not found] <200610070153.k971rsDf020869@shell0.pdx.osdl.net> @ 2006-10-08 9:50 ` Thomas Gleixner 2006-10-08 14:42 ` Daniel Walker 0 siblings, 1 reply; 4+ messages in thread From: Thomas Gleixner @ 2006-10-08 9:50 UTC (permalink / raw) To: akpm; +Cc: dwalker, johnstul, mingo, zippel, LKML On Fri, 2006-10-06 at 18:53 -0700, akpm@osdl.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. > 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. tglx ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + clocksource-initialize-list-value.patch added to -mm tree 2006-10-08 9:50 ` + clocksource-initialize-list-value.patch added to -mm tree Thomas Gleixner @ 2006-10-08 14:42 ` Daniel Walker 2006-10-08 15:07 ` Arjan van de Ven 0 siblings, 1 reply; 4+ messages in thread From: Daniel Walker @ 2006-10-08 14:42 UTC (permalink / raw) To: tglx; +Cc: akpm, johnstul, mingo, zippel, LKML On Sun, 2006-10-08 at 11:50 +0200, Thomas Gleixner wrote: > On Fri, 2006-10-06 at 18:53 -0700, akpm@osdl.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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + clocksource-initialize-list-value.patch added to -mm tree 2006-10-08 14:42 ` Daniel Walker @ 2006-10-08 15:07 ` Arjan van de Ven 2006-10-08 15:13 ` Daniel Walker 0 siblings, 1 reply; 4+ messages in thread From: Arjan van de Ven @ 2006-10-08 15:07 UTC (permalink / raw) To: Daniel Walker; +Cc: tglx, akpm, johnstul, mingo, zippel, LKML On Sun, 2006-10-08 at 07:42 -0700, Daniel Walker wrote: > On Sun, 2006-10-08 at 11:50 +0200, Thomas Gleixner wrote: > > On Fri, 2006-10-06 at 18:53 -0700, akpm@osdl.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. so do it. The ones that are in development are easily fixed and consistency is worth a LOT in terms of API. Bonus points if the kernel printk's a helpful message on abuse. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: + clocksource-initialize-list-value.patch added to -mm tree 2006-10-08 15:07 ` Arjan van de Ven @ 2006-10-08 15:13 ` Daniel Walker 0 siblings, 0 replies; 4+ messages in thread From: Daniel Walker @ 2006-10-08 15:13 UTC (permalink / raw) To: Arjan van de Ven; +Cc: tglx, akpm, johnstul, mingo, zippel, LKML On Sun, 2006-10-08 at 17:07 +0200, Arjan van de Ven wrote: > > so do it. The ones that are in development are easily fixed and > consistency is worth a LOT in terms of API. Bonus points if the kernel > printk's a helpful message on abuse. > I was kicking myself for the "clocksource" kernel parameter removal, but I guess that's more akin to being exposed to userspace. The printks might just end up being an OOPS, but I can look into it. Daniel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-08 15:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200610070153.k971rsDf020869@shell0.pdx.osdl.net>
2006-10-08 9:50 ` + clocksource-initialize-list-value.patch added to -mm tree Thomas Gleixner
2006-10-08 14:42 ` Daniel Walker
2006-10-08 15:07 ` Arjan van de Ven
2006-10-08 15:13 ` Daniel Walker
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®