Alan Stern b4dfdbb3c7 [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>
2006-10-04 07:55:30 -07:00
..
2006-10-03 23:01:26 +02:00
2006-10-03 22:24:43 +02:00
2006-10-03 08:04:06 -07:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2006-10-03 22:31:37 +02:00
2006-10-03 22:36:44 +02:00
2006-10-03 22:34:14 +02:00
2006-10-04 07:55:15 -07:00
2006-10-03 23:31:30 +02:00
2006-10-03 23:33:23 +02:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2006-10-04 07:55:30 -07:00
2006-10-03 22:31:37 +02:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2006-10-02 07:57:14 -07:00
2006-10-03 23:01:26 +02:00
2006-10-04 07:55:24 -07:00
2006-10-03 22:31:37 +02:00