diff options
author | Linus Torvalds <torvalds@macmini.osdl.org> | 2006-07-23 12:12:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@macmini.osdl.org> | 2006-07-23 12:12:16 -0700 |
commit | aa95387774039096c11803c04011f1aa42d85758 (patch) | |
tree | b8d3c845efedc2d67bcaff0038b4306fa375379c /net/llc/llc_s_st.c | |
parent | 2cd7cbdf4bd0d0fe58e4dc903e8b413412595504 (diff) | |
download | linux-aa95387774039096c11803c04011f1aa42d85758.tar.bz2 |
cpu hotplug: simplify and hopefully fix locking
The CPU hotplug locking was quite messy, with a recursive lock to
handle the fact that both the actual up/down sequence wanted to
protect itself from being re-entered, but the callbacks that it
called also tended to want to protect themselves from CPU events.
This splits the lock into two (one to serialize the whole hotplug
sequence, the other to protect against the CPU present bitmaps
changing). The latter still allows recursive usage because some
subsystems (ondemand policy for cpufreq at least) had already gotten
too used to the lax locking, but the locking mistakes are hopefully
now less fundamental, and we now warn about recursive lock usage
when we see it, in the hope that it can be fixed.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/llc/llc_s_st.c')
0 files changed, 0 insertions, 0 deletions