]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Define rtc_lock on Atari
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Oct 2008 19:58:55 +0000 (21:58 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2008 17:23:27 +0000 (10:23 -0700)
commitcddf25068e14e5d4ced3e97d831e7e5e4e2a4643
tree0a293445a8cc2b17bd815e02ebd75242b3c62b3d
parentf0c6d0526063cf6dc7d563f5827f13bdcbdd06ca
m68k: Define rtc_lock on Atari

The nvram and rtc-cmos drivers use the spinlock rtc_lock to protect against
concurrent accesses to the CMOS memory. As m68k doesn't support SMP or preempt
yet, the spinlock calls tend to get optimized away, but not for all
configurations, causing in some rare cases:

| ERROR: "rtc_lock" [drivers/rtc/rtc-cmos.ko] undefined!
| ERROR: "rtc_lock" [drivers/char/nvram.ko] undefined!

Add the spinlock to the Atari core code to avoid this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/atari/time.c