diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-05-26 12:33:27 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-06-14 06:00:33 -0400 |
commit | 2fcc112af37fa88f8da077d6dd3bb8e38e75adb1 (patch) | |
tree | 471c4780b9290b78671eacad0885ab8fe5db60f6 | |
parent | 77d62f532282010d5859a99819d6a0c233bfcfff (diff) |
clocksource/drivers: Rename clksrc table to timer
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>
-rw-r--r-- | drivers/clocksource/clksrc-probe.c | 18 | ||||
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 7 | ||||
-rw-r--r-- | include/linux/clocksource.h | 4 |
3 files changed, 15 insertions, 14 deletions
diff --git a/drivers/clocksource/clksrc-probe.c b/drivers/clocksource/clksrc-probe.c index 5d549c2a65fe..da81e5de74fe 100644 --- a/drivers/clocksource/clksrc-probe.c +++ b/drivers/clocksource/clksrc-probe.c | |||
@@ -19,20 +19,20 @@ | |||
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/clocksource.h> | 20 | #include <linux/clocksource.h> |
21 | 21 | ||
22 | extern struct of_device_id __clksrc_of_table[]; | 22 | extern struct of_device_id __timer_of_table[]; |
23 | 23 | ||
24 | static const struct of_device_id __clksrc_of_table_sentinel | 24 | static const struct of_device_id __timer_of_table_sentinel |
25 | __used __section(__clksrc_of_table_end); | 25 | __used __section(__timer_of_table_end); |
26 | 26 | ||
27 | void __init timer_probe(void) | 27 | void __init timer_probe(void) |
28 | { | 28 | { |
29 | struct device_node *np; | 29 | struct device_node *np; |
30 | const struct of_device_id *match; | 30 | const struct of_device_id *match; |
31 | of_init_fn_1_ret init_func_ret; | 31 | of_init_fn_1_ret init_func_ret; |
32 | unsigned clocksources = 0; | 32 | unsigned timers = 0; |
33 | int ret; | 33 | int ret; |
34 | 34 | ||
35 | for_each_matching_node_and_match(np, __clksrc_of_table, &match) { | 35 | for_each_matching_node_and_match(np, __timer_of_table, &match) { |
36 | if (!of_device_is_available(np)) | 36 | if (!of_device_is_available(np)) |
37 | continue; | 37 | continue; |
38 | 38 | ||
@@ -45,11 +45,11 @@ void __init timer_probe(void) | |||
45 | continue; | 45 | continue; |
46 | } | 46 | } |
47 | 47 | ||
48 | clocksources++; | 48 | timers++; |
49 | } | 49 | } |
50 | 50 | ||
51 | clocksources += acpi_probe_device_table(clksrc); | 51 | timers += acpi_probe_device_table(timer); |
52 | 52 | ||
53 | if (!clocksources) | 53 | if (!timers) |
54 | pr_crit("%s: no matching clocksources found\n", __func__); | 54 | pr_crit("%s: no matching timers found\n", __func__); |
55 | } | 55 | } |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 401d324bcede..c6a4ef50bbe6 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -172,7 +172,7 @@ | |||
172 | KEEP(*(__##name##_of_table)) \ | 172 | KEEP(*(__##name##_of_table)) \ |
173 | KEEP(*(__##name##_of_table_end)) | 173 | KEEP(*(__##name##_of_table_end)) |
174 | 174 | ||
175 | #define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc) | 175 | #define TIMER_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, timer) |
176 | #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip) | 176 | #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip) |
177 | #define CLK_OF_TABLES() OF_TABLE(CONFIG_COMMON_CLK, clk) | 177 | #define CLK_OF_TABLES() OF_TABLE(CONFIG_COMMON_CLK, clk) |
178 | #define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu) | 178 | #define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu) |
@@ -556,14 +556,15 @@ | |||
556 | MEM_DISCARD(init.rodata) \ | 556 | MEM_DISCARD(init.rodata) \ |
557 | CLK_OF_TABLES() \ | 557 | CLK_OF_TABLES() \ |
558 | RESERVEDMEM_OF_TABLES() \ | 558 | RESERVEDMEM_OF_TABLES() \ |
559 | CLKSRC_OF_TABLES() \ | 559 | TIMER_OF_TABLES() \ |
560 | IOMMU_OF_TABLES() \ | 560 | IOMMU_OF_TABLES() \ |
561 | CPU_METHOD_OF_TABLES() \ | 561 | CPU_METHOD_OF_TABLES() \ |
562 | CPUIDLE_METHOD_OF_TABLES() \ | 562 | CPUIDLE_METHOD_OF_TABLES() \ |
563 | KERNEL_DTB() \ | 563 | KERNEL_DTB() \ |
564 | IRQCHIP_OF_MATCH_TABLE() \ | 564 | IRQCHIP_OF_MATCH_TABLE() \ |
565 | ACPI_PROBE_TABLE(irqchip) \ | 565 | ACPI_PROBE_TABLE(irqchip) \ |
566 | ACPI_PROBE_TABLE(clksrc) \ | 566 | ACPI_PROBE_TABLE(timer) \ |
567 | ACPI_PROBE_TABLE(iort) \ | ||
567 | EARLYCON_TABLE() | 568 | EARLYCON_TABLE() |
568 | 569 | ||
569 | #define INIT_TEXT \ | 570 | #define INIT_TEXT \ |
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index e43f37f9a1b6..7cd38b21cbd3 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h | |||
@@ -250,7 +250,7 @@ extern int clocksource_mmio_init(void __iomem *, const char *, | |||
250 | extern int clocksource_i8253_init(void); | 250 | extern int clocksource_i8253_init(void); |
251 | 251 | ||
252 | #define TIMER_OF_DECLARE(name, compat, fn) \ | 252 | #define TIMER_OF_DECLARE(name, compat, fn) \ |
253 | OF_DECLARE_1_RET(clksrc, name, compat, fn) | 253 | OF_DECLARE_1_RET(timer, name, compat, fn) |
254 | 254 | ||
255 | #ifdef CONFIG_CLKSRC_PROBE | 255 | #ifdef CONFIG_CLKSRC_PROBE |
256 | extern void timer_probe(void); | 256 | extern void timer_probe(void); |
@@ -259,6 +259,6 @@ static inline void timer_probe(void) {} | |||
259 | #endif | 259 | #endif |
260 | 260 | ||
261 | #define TIMER_ACPI_DECLARE(name, table_id, fn) \ | 261 | #define TIMER_ACPI_DECLARE(name, table_id, fn) \ |
262 | ACPI_DECLARE_PROBE_ENTRY(clksrc, name, table_id, 0, NULL, 0, fn) | 262 | ACPI_DECLARE_PROBE_ENTRY(timer, name, table_id, 0, NULL, 0, fn) |
263 | 263 | ||
264 | #endif /* _LINUX_CLOCKSOURCE_H */ | 264 | #endif /* _LINUX_CLOCKSOURCE_H */ |