Re: [PATCH 9/9] clocksource: refactor duplicate registration checking

2007-03-30 Thread Daniel Walker
On Fri, 2007-03-30 at 21:59 -0400, James Morris wrote: > On Fri, 30 Mar 2007, Daniel Walker wrote: > > > /** > > * clocksource_register - Used to install new clocksources > > * @t: clocksource to be registered > > * > > - * Returns -EBUSY if registration fails, zero otherwise. >

Re: [PATCH 9/9] clocksource: refactor duplicate registration checking

2007-03-30 Thread James Morris
On Fri, 30 Mar 2007, Daniel Walker wrote: > /** > * clocksource_register - Used to install new clocksources > * @t: clocksource to be registered > * > - * Returns -EBUSY if registration fails, zero otherwise. > + * Always returns zero. > */ > int clocksource_register(struct

[PATCH 9/9] clocksource: refactor duplicate registration checking

2007-03-30 Thread Daniel Walker
Refactors the duplicate registration checking. This makes it based on the clocksource structure list state. I was able to drop some if statements making the registration code path slightly smaller and faster, and remove some looping which was endemic of the first version of this check. Signed-Off-