]> git.hungrycats.org Git - linux/commit
[PATCH] Alpha: make prefetch_spinlock() a no-op on UP
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 13:12:29 +0000 (05:12 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:12:29 +0000 (05:12 -0800)
commit3ab8835250b69514319969a97661b1d83814b637
tree46b63ac996a6a926b5c83ebaee78c401d28403b1
parent68cfa179d94df4c16145e3b3aa30a35120ddf0db
[PATCH] Alpha: make prefetch_spinlock() a no-op on UP

From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>

When CONFIG_SMP is not set, spinlock_t is an empty structure, so its
address has arbitrary alignment.

The prefetch instructions with unaligned address don't have visible side
effects on alphas with SRM console (except performance degradation) - the
PALcode handles unaligned traps caused by prefetch instructions internally.
However, on old AlphaBIOS/MILO boxes unaligned prefetch leads to unhandled
alignment trap and kernel panic.
include/asm-alpha/processor.h