diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2013-03-09 02:16:13 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-03-09 02:18:14 -0500 |
commit | 6938d75a8c1a1752f9fa7ef14a0c570036c7b73b (patch) | |
tree | 0eab3d60f50eb74d30c71e19b3b62e3de83df35c | |
parent | c933512bb6948763f8e7f340f026b4167c117920 (diff) |
ARM: EXYNOS: move mct driver to drivers/clocksource
Move the multi core timer (mct) driver to from mach-exynos
to drivers/clocksource and update the Kconfig and makefiles.
Cc: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/mach-exynos/Makefile | 2 | ||||
-rw-r--r-- | drivers/clocksource/Kconfig | 5 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 1 | ||||
-rw-r--r-- | drivers/clocksource/exynos_mct.c (renamed from arch/arm/mach-exynos/mct.c) | 0 |
6 files changed, 7 insertions, 9 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5b714695b01b..94a062894a10 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -1650,7 +1650,7 @@ config LOCAL_TIMERS | |||
1650 | bool "Use local timer interrupts" | 1650 | bool "Use local timer interrupts" |
1651 | depends on SMP | 1651 | depends on SMP |
1652 | default y | 1652 | default y |
1653 | select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !EXYNOS4_MCT) | 1653 | select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !CLKSRC_EXYNOS_MCT) |
1654 | help | 1654 | help |
1655 | Enable support for local timers on SMP platforms, rather then the | 1655 | Enable support for local timers on SMP platforms, rather then the |
1656 | legacy IPI broadcast method. Local timers allows the system | 1656 | legacy IPI broadcast method. Local timers allows the system |
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 52f51e7b4a0c..b0802eb24d40 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -79,12 +79,6 @@ config SOC_EXYNOS5440 | |||
79 | help | 79 | help |
80 | Enable EXYNOS5440 SoC support | 80 | Enable EXYNOS5440 SoC support |
81 | 81 | ||
82 | config EXYNOS4_MCT | ||
83 | bool | ||
84 | default y | ||
85 | help | ||
86 | Use MCT (Multi Core Timer) as kernel timers | ||
87 | |||
88 | config EXYNOS_DEV_DMA | 82 | config EXYNOS_DEV_DMA |
89 | bool | 83 | bool |
90 | help | 84 | help |
diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile index 435757e57bb4..daf289b21486 100644 --- a/arch/arm/mach-exynos/Makefile +++ b/arch/arm/mach-exynos/Makefile | |||
@@ -26,8 +26,6 @@ obj-$(CONFIG_ARCH_EXYNOS) += pmu.o | |||
26 | 26 | ||
27 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o | 27 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o |
28 | 28 | ||
29 | obj-$(CONFIG_EXYNOS4_MCT) += mct.o | ||
30 | |||
31 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 29 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
32 | 30 | ||
33 | # machine support | 31 | # machine support |
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index e507ab7df60b..e8c453285151 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig | |||
@@ -67,3 +67,8 @@ config CLKSRC_METAG_GENERIC | |||
67 | def_bool y if METAG | 67 | def_bool y if METAG |
68 | help | 68 | help |
69 | This option enables support for the Meta per-thread timers. | 69 | This option enables support for the Meta per-thread timers. |
70 | |||
71 | config CLKSRC_EXYNOS_MCT | ||
72 | def_bool y if ARCH_EXYNOS | ||
73 | help | ||
74 | Support for Multi Core Timer controller on Exynos SoCs. | ||
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 4d8283aec5b5..1c1b15db7c4d 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -19,6 +19,7 @@ obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o | |||
19 | obj-$(CONFIG_SUNXI_TIMER) += sunxi_timer.o | 19 | obj-$(CONFIG_SUNXI_TIMER) += sunxi_timer.o |
20 | obj-$(CONFIG_ARCH_TEGRA) += tegra20_timer.o | 20 | obj-$(CONFIG_ARCH_TEGRA) += tegra20_timer.o |
21 | obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o | 21 | obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o |
22 | obj-$(CONFIG_CLKSRC_EXYNOS_MCT) += exynos_mct.o | ||
22 | 23 | ||
23 | obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o | 24 | obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o |
24 | obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o | 25 | obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o |
diff --git a/arch/arm/mach-exynos/mct.c b/drivers/clocksource/exynos_mct.c index 545c98976e93..545c98976e93 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/drivers/clocksource/exynos_mct.c | |||