diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-10-04 13:17:06 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 18:55:30 +0400 |
commit | b4dfdbb3c707474a2254c5b4d7e62be31a4b7da9 (patch) | |
tree | 20558266428cb904c4ffc660647cfdb7e7abeae5 /net/key | |
parent | e6a92013ba458804161c0c5b6d134d82204dc233 (diff) | |
download | linux-b4dfdbb3c707474a2254c5b4d7e62be31a4b7da9.tar.xz |
[PATCH] cpufreq: make the transition_notifier chain use SRCU
This patch (as762) changes the cpufreq_transition_notifier_list from a
blocking_notifier_head to an srcu_notifier_head. This will prevent errors
caused attempting to call down_read() to access the notifier chain at a
time when interrupts must remain disabled, during system suspend.
It's not clear to me whether this is really necessary; perhaps the chain
could be made into an atomic_notifier. However a couple of the callout
routines do use blocking operations, so this approach seems safer.
The head of the notifier chain needs to be initialized before use; this is
done by an __init routine at core_initcall time. If this turns out not to
be a good choice, it can easily be changed.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Cc: Jesse Brandeburg <jesse.brandeburg@gmail.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions