OSDN Git Service

ARM: versatile: Remove dead sched_clock code
authorRob Herring <robh@kernel.org>
Thu, 9 Apr 2020 22:19:52 +0000 (16:19 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Apr 2020 11:02:17 +0000 (13:02 +0200)
Now that there's a DT based sched_clock driver in
drivers/clocksource/timer-versatile.c and all the Arm reference
platforms are DT only, the non-DT versatile sched_clock code can be
removed.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200409221952.31287-1-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/Kconfig
arch/arm/mach-realview/Kconfig
arch/arm/plat-versatile/Kconfig [deleted file]
arch/arm/plat-versatile/Makefile
arch/arm/plat-versatile/include/plat/sched_clock.h [deleted file]
arch/arm/plat-versatile/sched-clock.c [deleted file]

index 66a04f6..4595e5c 100644 (file)
@@ -735,7 +735,6 @@ source "arch/arm/mach-ux500/Kconfig"
 source "arch/arm/mach-versatile/Kconfig"
 
 source "arch/arm/mach-vexpress/Kconfig"
-source "arch/arm/plat-versatile/Kconfig"
 
 source "arch/arm/mach-vt8500/Kconfig"
 
index 0f139a2..0bed0d3 100644 (file)
@@ -16,7 +16,6 @@ menuconfig ARCH_REALVIEW
        select MACH_REALVIEW_EB if ARCH_MULTI_V5
        select MFD_SYSCON
        select PLAT_VERSATILE
-       select PLAT_VERSATILE_SCHED_CLOCK
        select POWER_RESET
        select POWER_RESET_VERSATILE
        select POWER_SUPPLY
diff --git a/arch/arm/plat-versatile/Kconfig b/arch/arm/plat-versatile/Kconfig
deleted file mode 100644 (file)
index 748238f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-if PLAT_VERSATILE
-
-config PLAT_VERSATILE_SCHED_CLOCK
-       bool
-
-endif
index e856f0a..5de44a5 100644 (file)
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
 
-obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o
 obj-$(CONFIG_SMP) += headsmp.o platsmp.o
 obj-$(CONFIG_HOTPLUG_CPU)              += hotplug.o
diff --git a/arch/arm/plat-versatile/include/plat/sched_clock.h b/arch/arm/plat-versatile/include/plat/sched_clock.h
deleted file mode 100644 (file)
index 83fdaef..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef ARM_PLAT_SCHED_CLOCK_H
-#define ARM_PLAT_SCHED_CLOCK_H
-
-void versatile_sched_clock_init(void __iomem *, unsigned long);
-
-#endif
diff --git a/arch/arm/plat-versatile/sched-clock.c b/arch/arm/plat-versatile/sched-clock.c
deleted file mode 100644 (file)
index ecb7913..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/*
- *  linux/arch/arm/plat-versatile/sched-clock.c
- *
- *  Copyright (C) 1999 - 2003 ARM Limited
- *  Copyright (C) 2000 Deep Blue Solutions Ltd
- */
-#include <linux/kernel.h>
-#include <linux/io.h>
-#include <linux/sched_clock.h>
-
-#include <plat/sched_clock.h>
-
-static void __iomem *ctr;
-
-static u64 notrace versatile_read_sched_clock(void)
-{
-       if (ctr)
-               return readl(ctr);
-
-       return 0;
-}
-
-void __init versatile_sched_clock_init(void __iomem *reg, unsigned long rate)
-{
-       ctr = reg;
-       sched_clock_register(versatile_read_sched_clock, 32, rate);
-}