Re: [PATCH] regulator: Call into regulator driver only when voltage min/max really changes.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mark Brown
Date: Sunday, December 12, 2010 - 6:13 am

On Sun, Dec 12, 2010 at 04:41:04AM -0800, skannan@codeaurora.org wrote:



It's certainly good to optimise in the core, which is why I acked your
patch, but it strikes me that if these consumers are regularly setting
the regulator voltage to the same thing over and over again they may
well also be doing whatever else goes along with setting the voltage
over and over again and there's room for optimisation there also.



At the minute this can be handled at the consumer level since if the
consumer knows that the voltage got changed underneath it (and if it
cares about the voltage then it probably ought to know about this
otherwise something is going to get upset) it can reconfigure the
voltage by calling set_voltage() again.


It's an indication to other consumers that they might want to reread the
voltage.  Overnotification doesn't really hurt here, though it'd be nice
to avoid it.


It'd probably coollide with the update I'm doing for syncing voltages.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] regulator: Call into regulator driver only whe ..., Mark Brown, (Sun Dec 12, 6:13 am)