]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[S390] Fix compile on !CONFIG_SMP.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 5 Nov 2007 10:10:10 +0000 (11:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Nov 2007 10:10:16 +0000 (11:10 +0100)
commit0d2be08893605be00de0f95ee7e4b8917ea1ebc3
treeb9d9b4d0ef7079d5cea961dccb7c9e828aca275c
parent931bb68ba6355b7111966c90822ed862c102a9cd
[S390] Fix compile on !CONFIG_SMP.

Commit fae8b22d3e3e3a3d317a7746493997af02a3f35c
"[S390] Add per-cpu idle time / idle count sysfs attributes" causes
a link error on !CONFIG_SMP.
Fix this by adding some #ifdef's. Real fix would be to cleanup the
code since we don't register a cpu on !CONFIG_SMP. But that would
be quite a big patch. For the time being this is good enough.

arch/s390/kernel/built-in.o: In function `do_monitor_call':
(.text+0x50d4): undefined reference to `per_cpu__s390_idle'
arch/s390/kernel/built-in.o: In function `cpu_idle':
(.text+0x518c): undefined reference to `per_cpu__s390_idle'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/process.c