diff options
author | Manuel Lauss <mano@roarinelk.homelinux.net> | 2008-12-21 03:26:22 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-01-11 04:57:26 -0500 |
commit | 779e7d41ad004946603da139da99ba775f74cb1c (patch) | |
tree | befca6de7d38cfb689150e722164e3d2dad7aca7 /arch/mips/Kconfig | |
parent | 074cf656700ddd1d2bd7f815f78e785418beb898 (diff) |
MIPS: make cp0 counter clocksource/event usable as fallback.
The current mips clock build infrastructure lets a system only use
either the MIPS cp0 counter or a SoC specific timer as a clocksource /
clockevent device.
This patch renames the core cp0 counter clocksource / clockevent functions
from mips_* to r4k_* and updates the wrappers in asm-mips/time.h to
call these renamed functions instead.
Chips which can detect whether it is safe to use a chip-specific timer
can now fall back on the cp0 counter if necessary and possible
(e.g. Alchemy with a follow-on patch).
Existing behaviour is not changed in any way.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 424ff744d07f..52c80c2a57f2 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -721,7 +721,11 @@ config CEVT_DS1287 | |||
721 | config CEVT_GT641XX | 721 | config CEVT_GT641XX |
722 | bool | 722 | bool |
723 | 723 | ||
724 | config CEVT_R4K_LIB | ||
725 | bool | ||
726 | |||
724 | config CEVT_R4K | 727 | config CEVT_R4K |
728 | select CEVT_R4K_LIB | ||
725 | bool | 729 | bool |
726 | 730 | ||
727 | config CEVT_SB1250 | 731 | config CEVT_SB1250 |
@@ -736,7 +740,11 @@ config CSRC_BCM1480 | |||
736 | config CSRC_IOASIC | 740 | config CSRC_IOASIC |
737 | bool | 741 | bool |
738 | 742 | ||
743 | config CSRC_R4K_LIB | ||
744 | bool | ||
745 | |||
739 | config CSRC_R4K | 746 | config CSRC_R4K |
747 | select CSRC_R4K_LIB | ||
740 | bool | 748 | bool |
741 | 749 | ||
742 | config CSRC_SB1250 | 750 | config CSRC_SB1250 |