Re: [PATCH 07/23] clocksource: rating sorted list

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Walker <dwalker@...>
Cc: <akpm@...>, <linux-kernel@...>, <johnstul@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, January 31, 2007 - 5:34 am

* Daniel Walker <dwalker@mvista.com> wrote:


Unfortunately this seems to be a step backwards to me. Please consider:


this should be the following API:

	clocksource_rating_change(&clocksource_tsc, 0);

a rating change can occur due to other things as well, not only due to 
'tsc unstable' events. So keeping an API around that changes the rating 
(and propagates all related changes), makes more sense to me.

also, a pure function call is the most natural (and most flexible) API, 
for a centrally registered resource like a clock source driver. And a 
rating change should imply a reselect too, obviously. That way we 
replace 2 lines with 1 line - that's a real API improvement and a real 
cleanup patch.

and that's precisely what Thomas' patch in -mm that your queue undoes 
implements. (see: simplify-the-registration-of-clocksources.patch in 
-mm) Have you considered Thomas' change when you dropped it?

	Ingo
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 07/23] clocksource: rating sorted list, Daniel Walker, (Tue Jan 30, 11:37 pm)
Re: [PATCH 07/23] clocksource: rating sorted list, Ingo Molnar, (Wed Jan 31, 5:34 am)
Re: [PATCH 07/23] clocksource: rating sorted list, Daniel Walker, (Wed Jan 31, 11:07 am)