]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: local timers: reserve local_timer_register() to SMP
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 Feb 2012 11:25:58 +0000 (11:25 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Apr 2012 12:35:32 +0000 (13:35 +0100)
commita6efcce804597a2f7186358c8dd0b261f3651c5c
treeaa1f0e73fea7f29db1e24d1a12ee2fa9124bf922
parent955374d25137c391eaf05569ccd747c346cb6db6
ARM: local timers: reserve local_timer_register() to SMP

When running an SMP_ON_UP enabled kernel on UP, or with nosmp
passed to the kernel, we want to be able to detect that a local
timer is not going to be used (local timers are only used on
SMP platforms), so we could register it as a global timer instead.

Return -ENXIO when the above case is detected.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kernel/smp.c