]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clocksource/drivers: Rename clksrc table to timer
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 26 May 2017 16:33:27 +0000 (18:33 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 14 Jun 2017 10:00:33 +0000 (12:00 +0200)
The table name is now renamed to 'timer' for consistency with
the CLOCKSOURCE_OF_DECLARE => TIMER_OF_DECLARE change.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/clocksource/clksrc-probe.c
include/asm-generic/vmlinux.lds.h
include/linux/clocksource.h

index 5d549c2a65fef813d1d757cda9ebc9ee805749f3..da81e5de74feeaa3aa7b6949cf75576b7bde33a1 100644 (file)
 #include <linux/of.h>
 #include <linux/clocksource.h>
 
-extern struct of_device_id __clksrc_of_table[];
+extern struct of_device_id __timer_of_table[];
 
-static const struct of_device_id __clksrc_of_table_sentinel
-       __used __section(__clksrc_of_table_end);
+static const struct of_device_id __timer_of_table_sentinel
+       __used __section(__timer_of_table_end);
 
 void __init timer_probe(void)
 {
        struct device_node *np;
        const struct of_device_id *match;
        of_init_fn_1_ret init_func_ret;
-       unsigned clocksources = 0;
+       unsigned timers = 0;
        int ret;
 
-       for_each_matching_node_and_match(np, __clksrc_of_table, &match) {
+       for_each_matching_node_and_match(np, __timer_of_table, &match) {
                if (!of_device_is_available(np))
                        continue;
 
@@ -45,11 +45,11 @@ void __init timer_probe(void)
                        continue;
                }
 
-               clocksources++;
+               timers++;
        }
 
-       clocksources += acpi_probe_device_table(clksrc);
+       timers += acpi_probe_device_table(timer);
 
-       if (!clocksources)
-               pr_crit("%s: no matching clocksources found\n", __func__);
+       if (!timers)
+               pr_crit("%s: no matching timers found\n", __func__);
 }
index 401d324bcede9e81ccc94adb2c58c50229453ede..c6a4ef50bbe6fed54068b293c57f5e6218f5be22 100644 (file)
        KEEP(*(__##name##_of_table))                                    \
        KEEP(*(__##name##_of_table_end))
 
-#define CLKSRC_OF_TABLES()     OF_TABLE(CONFIG_CLKSRC_OF, clksrc)
+#define TIMER_OF_TABLES()      OF_TABLE(CONFIG_CLKSRC_OF, timer)
 #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip)
 #define CLK_OF_TABLES()                OF_TABLE(CONFIG_COMMON_CLK, clk)
 #define IOMMU_OF_TABLES()      OF_TABLE(CONFIG_OF_IOMMU, iommu)
        MEM_DISCARD(init.rodata)                                        \
        CLK_OF_TABLES()                                                 \
        RESERVEDMEM_OF_TABLES()                                         \
-       CLKSRC_OF_TABLES()                                              \
+       TIMER_OF_TABLES()                                               \
        IOMMU_OF_TABLES()                                               \
        CPU_METHOD_OF_TABLES()                                          \
        CPUIDLE_METHOD_OF_TABLES()                                      \
        KERNEL_DTB()                                                    \
        IRQCHIP_OF_MATCH_TABLE()                                        \
        ACPI_PROBE_TABLE(irqchip)                                       \
-       ACPI_PROBE_TABLE(clksrc)                                        \
+       ACPI_PROBE_TABLE(timer)                                         \
+       ACPI_PROBE_TABLE(iort)                                          \
        EARLYCON_TABLE()
 
 #define INIT_TEXT                                                      \
index e43f37f9a1b6f0338bc20663c6fa0a5c0a314390..7cd38b21cbd348b512c8f0288371dfcb57cca6f2 100644 (file)
@@ -250,7 +250,7 @@ extern int clocksource_mmio_init(void __iomem *, const char *,
 extern int clocksource_i8253_init(void);
 
 #define TIMER_OF_DECLARE(name, compat, fn) \
-       OF_DECLARE_1_RET(clksrc, name, compat, fn)
+       OF_DECLARE_1_RET(timer, name, compat, fn)
 
 #ifdef CONFIG_CLKSRC_PROBE
 extern void timer_probe(void);
@@ -259,6 +259,6 @@ static inline void timer_probe(void) {}
 #endif
 
 #define TIMER_ACPI_DECLARE(name, table_id, fn)         \
-       ACPI_DECLARE_PROBE_ENTRY(clksrc, name, table_id, 0, NULL, 0, fn)
+       ACPI_DECLARE_PROBE_ENTRY(timer, name, table_id, 0, NULL, 0, fn)
 
 #endif /* _LINUX_CLOCKSOURCE_H */