[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0607281710090.5679-100000@iolanthe.rowland.org>
Date: Fri, 28 Jul 2006 17:19:04 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: cpufreq@...ts.linux.org.uk
cc: Kernel development list <linux-kernel@...r.kernel.org>
Subject: cpufreq notifier initialization
I want to modify the cpufreq_transition_notifier_list. Currently it is a
source of problems during swsusp, because the suspend and resume methods
invoke the notifier chain at a time when the down_read() operation
protecting the chain is not legal.
If the notifier chain is protected by SRCU ("Sleepable RCU", recently
added to -mm) instead of an rwsem, the problems would go away. However
SRCU requires runtime initialization. This means the notifier chain's
head has to be initialized before any listeners register on it and before
the chain is ever invoked.
Can anyone tell me where a good place would be to do the initialization?
It has to be early enough that nobody has used the transition notifier
list but late enough that per-CPU data can be allocated.
Alan Stern
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists