Files
OpenCellular/common
Randall Spangler fee92f1202 hook_call_deferred() works before tasks have started
State machines implemented using deferred functions need to be able to
kick off deferred function from a HOOK_INIT handler.  But tasks aren't
running in HOOK_INIT, so task_wake() fails.

Instead, hook_call_deferred() should check to see if the hook task has
had a chance to run yet.  If it hasn't, then there's no need to wake
it; it'll get run eventually anyway.

BUG=chrome-os-partner:24892
BRANCH=rambi
TEST=Add a call to hook_call_deferred() in a HOOK_INIT handler.  It shouldn't
     crash, and the deferred function should be called.

Change-Id: I5c8077b636ae030a668a211fd8238549b6bcfa54
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181953
Reviewed-by: Yung-chieh Lo <yjlou@chromium.org>
2014-01-09 01:33:03 +00:00
..
2013-12-20 05:07:58 +00:00
2013-12-17 21:27:53 +00:00
2013-12-19 00:12:28 +00:00
2013-12-20 05:07:58 +00:00
2013-12-02 22:03:51 +00:00
2013-10-25 20:12:49 +00:00
2013-12-10 04:40:39 +00:00
2013-12-10 02:13:52 +00:00
2013-12-19 00:12:28 +00:00
2013-12-17 21:27:53 +00:00
2013-12-19 00:12:28 +00:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2013-12-19 00:12:28 +00:00
2013-09-10 23:46:07 +00:00
2013-12-05 22:30:58 +00:00
2012-10-26 09:49:38 -07:00
2013-12-19 00:12:28 +00:00
2013-06-10 01:48:44 -07:00
2013-12-19 00:12:28 +00:00
2013-11-01 20:07:24 +00:00
2013-12-19 00:12:28 +00:00