• Andrew Morton's avatar
    [PATCH] Alpha: make prefetch_spinlock() a no-op on UP · 3ab88352
    Andrew Morton authored
    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.
    3ab88352
processor.h 2.96 KB