Files
OpenCellular/include
Doug Anderson 3f4899b6b0 stm32l: Add a "PRE_FREQ_CHANGE" hook to allow other code to prepare
Before this change drivers had no way of knowing that a frequency
change was coming.  This could cause problems for some drivers (like
i2c) that need to make sure that a transaction isn't happening while a
frequency change is happening.

The PRE_FREQ_CHANGE archiecture is very simple here and we don't allow
any way to cancel it.

At the moment, we guarantee:
- We won't call PRE_FREQ_CHANGE with interrupts disabled, so acquiring
  locks / sleeping is OK.
- We'll call the actual HOOK_FREQ_CHANGE after the PRE_FREQ_CHANGE.

PRE_FREQ_CHANGE and HOOK_FREQ_CHANGE should not use deferred function
calls.

BRANCH=pit
BUG=chrome-os-partner:22093
TEST=With all patches together:
- on AP: suspend_stress_test
- on EC: battery 10000 50

Change-Id: I2731a3e85d41e749fa571fdb74b5c9b12043cda6
Signed-off-by: Doug Anderson <dianders@chromium.org>
Previous-Reviewed-on: https://chromium-review.googlesource.com/167101
(cherry picked from commit d84c0dbbf7c5a72917a820e292ecfdfa698d0fb9)
Reviewed-on: https://chromium-review.googlesource.com/167148
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-08-29 22:51:11 +00:00
..
2013-04-30 10:38:43 -07:00
2013-07-15 14:10:45 -07:00
2013-04-05 14:28:42 -07:00
2013-07-10 11:16:43 -07:00
2013-07-10 11:16:43 -07:00
2013-07-10 11:16:43 -07:00
2013-03-26 18:03:20 -07:00
2013-08-07 17:24:09 -07:00
2013-06-27 12:48:06 -07:00
2011-12-07 19:10:02 +00:00
2012-10-26 09:49:38 -07:00
2013-04-24 00:06:00 -07:00
2013-07-24 15:50:19 -07:00
2013-06-26 09:08:23 -07:00
2012-10-30 12:42:46 -07:00
2013-06-18 10:31:09 -07:00
2013-08-07 12:43:48 -07:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2013-07-10 11:16:18 -07:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:10 -07:00
2013-08-27 23:20:33 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2013-07-16 12:06:30 -07:00
2013-07-24 14:05:17 -07:00
2012-10-29 16:52:49 -07:00