Don't use alternative_smp() in for __raw_spin_lock. gcc sometimes generates rip-relative addressing, so we can't simply copy the instruction to another place. Replace some leftover "lock;" with LOCK_PREFIX. Fillup space with 0x90 (nop) instead of 0x42, so "objdump -d -j .smp_altinstr_replacement vmlinux" gives more readable results. -- Gerd Hoffmann http://www.suse.de/~kraxel/julika-dora.jpeg