diff options
author | 2008-02-06 01:36:11 -0800 | |
---|---|---|
committer | 2008-02-06 10:41:00 -0800 | |
commit | d9afa43532adf8a31b93c4c7601fda3f423d8972 (patch) | |
tree | 1f5cc6d5050af80b5015b536c8b4f4fe1b6dd3d5 /ipc/msg.c | |
parent | A potential bug in inotify_user.c (diff) | |
download | linux-rng-d9afa43532adf8a31b93c4c7601fda3f423d8972.tar.xz linux-rng-d9afa43532adf8a31b93c4c7601fda3f423d8972.zip |
riscom8: fix SMP brokenness
After analyzing the elements that save_flags/cli/sti/restore_flags were
protecting, convert their usages to a global spinlock (the easiest and
most obvious next-step). There were some usages of flags being
intentionally cached, because the code already knew the state of
interrupts. These have been taken into account.
This allows us to remove CONFIG_BROKEN_ON_SMP. Completely untested.
[akpm@linux-foundation.org: use DEFINE_SPINLOCK]
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions