Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Lemote 2F: cs5536: mfgpt: depend on !highres

This timer does not support oneshot mode and as such the system remains
in periodic mode and won't support high res timers.
This patch adds a note about this in Kconfig and lets it depend on
!highres so users which want to use high timers don' stuck with this
timer.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-mips@linux-mips.org
Cc: Hua Yan <yanh@lemote.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Alex Smith <alex.smith@imgtec.com>
Cc: Hongliang Tao <taohl@lemote.com>
Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/6935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Sebastian Andrzej Siewior and committed by
Ralf Baechle
4fd4db4f 1461df59

+3 -2
+3 -2
arch/mips/loongson/Kconfig
··· 95 95 96 96 config CS5536_MFGPT 97 97 bool "CS5536 MFGPT Timer" 98 - depends on CS5536 98 + depends on CS5536 && !HIGH_RES_TIMERS 99 99 select MIPS_EXTERNAL_TIMER 100 100 help 101 - This option enables the mfgpt0 timer of AMD CS5536. 101 + This option enables the mfgpt0 timer of AMD CS5536. With this timer 102 + switched on you can not use high resolution timers. 102 103 103 104 If you want to enable the Loongson2 CPUFreq Driver, Please enable 104 105 this option at first, otherwise, You will get wrong system time.