Re: [PATCH 2/2] regulator: Optimise out noop voltage changes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Saravana Kannan
Date: Thursday, December 16, 2010 - 6:46 pm

> Reported-by: Saravana Kannan <skannan@codeaurora.org>
Thanks

voltage for multiple frequencies, for example).
+		goto out;

I have only web email access now. Sorry for the vague references to code
that follow.

When you reported a merge/rebase issue the other day, I didn't respond
with a similar patch for the following reasons:
1. With support for multiple consumers, we can further optimize and call
the producer's set voltage only if the final voltage range changes. So if
consumer A asks for (2.0 - 5.0) and consumer B keeps changing between (1.0
- 5.0) and (1.5 - 5.0), then we can completely no-op all of consumer B's
calls.

2. When I was trying to do the above this Sunday, I also noticed what
looks like a bug or at least an unpleasant behavior. A consumer's min_uV
and max_uV were being updated (for-next around Dec 12th) before calling
the producer's set voltage. So, in the above example, if consumer C comes
in and asks for (10 - 15), it will prevent the producer voltage from ever
changing again. All of consumer A and B's future requests will result in a
failure since min_uV > max_uV when you do the consumer aggregation.

Hope my vague references to code is good enough to point you the code I'm
talking about. May be you already fixed it too!

Thanks,
Saravana
-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.




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

Messages in current thread:
Re: [PATCH 2/2] regulator: Optimise out noop voltage changes, Saravana Kannan, (Thu Dec 16, 6:46 pm)
Re: [PATCH 2/2] regulator: Optimise out noop voltage changes, Saravana Kannan, (Fri Dec 17, 10:50 pm)