Skip to content

Commit

Permalink
clocksource/drivers: Rename clocksource_probe to timer_probe
Browse files Browse the repository at this point in the history
The function name is now renamed to 'timer_probe' for consistency with
the CLOCKSOURCE_OF_DECLARE => TIMER_OF_DECLARE change.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Daniel Lezcano committed Jun 14, 2017
1 parent 1727339 commit ba5d08c
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion arch/arc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ void __init setup_arch(char **cmdline_p)
void __init time_init(void)
{
of_clk_init(NULL);
clocksource_probe();
timer_probe();
}

static int __init customize_machine(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ void __init time_init(void)
#ifdef CONFIG_COMMON_CLK
of_clk_init(NULL);
#endif
clocksource_probe();
timer_probe();
}
}
2 changes: 1 addition & 1 deletion arch/arm/mach-mediatek/mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void __init mediatek_timer_init(void)
}

of_clk_init(NULL);
clocksource_probe();
timer_probe();
};

static const char * const mediatek_board_dt_compat[] = {
Expand Down
10 changes: 5 additions & 5 deletions arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ void __init omap_init_time(void)
__omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon",
2, "timer_sys_ck", NULL, false);

clocksource_probe();
timer_probe();
}

#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX)
Expand All @@ -506,7 +506,7 @@ void __init omap3_secure_sync32k_timer_init(void)
__omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure",
2, "timer_sys_ck", NULL, false);

clocksource_probe();
timer_probe();
}
#endif /* CONFIG_ARCH_OMAP3 */

Expand All @@ -517,7 +517,7 @@ void __init omap3_gptimer_timer_init(void)
__omap_sync32k_timer_init(2, "timer_sys_ck", NULL,
1, "timer_sys_ck", "ti,timer-alwon", true);
if (of_have_populated_dt())
clocksource_probe();
timer_probe();
}
#endif

Expand All @@ -532,7 +532,7 @@ static void __init omap4_sync32k_timer_init(void)
void __init omap4_local_timer_init(void)
{
omap4_sync32k_timer_init();
clocksource_probe();
timer_probe();
}
#endif

Expand Down Expand Up @@ -656,7 +656,7 @@ void __init omap5_realtime_timer_init(void)
omap4_sync32k_timer_init();
realtime_counter_init();

clocksource_probe();
timer_probe();
}
#endif /* CONFIG_SOC_OMAP5 || CONFIG_SOC_DRA7XX */

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void __init rockchip_timer_init(void)
}

of_clk_init(NULL);
clocksource_probe();
timer_probe();
}

static void __init rockchip_dt_init(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/setup-rcar-gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void __init rcar_gen2_timer_init(void)
#endif /* CONFIG_ARM_ARCH_TIMER */

of_clk_init(NULL);
clocksource_probe();
timer_probe();
}

struct memory_reserve_config {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear/spear13xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ void __init spear13xx_timer_init(void)
clk_put(pclk);

spear_setup_of_timer();
clocksource_probe();
timer_probe();
}
2 changes: 1 addition & 1 deletion arch/arm/mach-sunxi/sunxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void __init sun6i_timer_init(void)
of_clk_init(NULL);
if (IS_ENABLED(CONFIG_RESET_CONTROLLER))
sun6i_reset_init();
clocksource_probe();
timer_probe();
}

DT_MACHINE_START(SUN6I_DT, "Allwinner sun6i (A31) Family")
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ static const char * u300_board_compat[] = {
DT_MACHINE_START(U300_DT, "U300 S335/B335 (Device Tree)")
.map_io = u300_map_io,
.init_irq = u300_init_irq_dt,
.init_time = clocksource_probe,
.init_time = timer_probe,
.init_machine = u300_init_machine_dt,
.restart = u300_restart,
.dt_compat = u300_board_compat,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-zynq/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static void __init zynq_timer_init(void)
{
zynq_clock_init();
of_clk_init(NULL);
clocksource_probe();
timer_probe();
}

static struct map_desc zynq_cortex_a9_scu_map __initdata = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void __init time_init(void)
u32 arch_timer_rate;

of_clk_init(NULL);
clocksource_probe();
timer_probe();

tick_setup_hrtimer_broadcast();

Expand Down
2 changes: 1 addition & 1 deletion arch/h8300/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,5 @@ void __init calibrate_delay(void)
void __init time_init(void)
{
of_clk_init(NULL);
clocksource_probe();
timer_probe();
}
2 changes: 1 addition & 1 deletion arch/microblaze/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void __init time_init(void)
{
of_clk_init(NULL);
setup_cpuinfo_clk();
clocksource_probe();
timer_probe();
}

#ifdef CONFIG_DEBUG_FS
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/generic/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void __init plat_time_init(void)
}
}

clocksource_probe();
timer_probe();
}

void __init arch_init_irq(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mti-malta/malta-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void __init plat_time_init(void)
(freq%1000000)*100/1000000);
#ifdef CONFIG_CLKSRC_MIPS_GIC
update_gic_frequency_dt();
clocksource_probe();
timer_probe();
#endif
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pic32/pic32mzda/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ void __init plat_time_init(void)
pr_info("CPU Clock: %ldMHz\n", rate / 1000000);
mips_hpt_frequency = rate / 2;

clocksource_probe();
timer_probe();
}
2 changes: 1 addition & 1 deletion arch/mips/pistachio/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void __init plat_time_init(void)
struct clk *clk;

of_clk_init(NULL);
clocksource_probe();
timer_probe();

np = of_get_cpu_node(0, NULL);
if (!np) {
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/ralink/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ void __init plat_time_init(void)
pr_info("CPU Clock: %ldMHz\n", clk_get_rate(clk) / 1000000);
mips_hpt_frequency = clk_get_rate(clk) / 2;
clk_put(clk);
clocksource_probe();
timer_probe();
}
2 changes: 1 addition & 1 deletion arch/mips/ralink/timer-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ void __init plat_time_init(void)
ralink_of_remap();

of_clk_init(NULL);
clocksource_probe();
timer_probe();
}
2 changes: 1 addition & 1 deletion arch/mips/xilfpga/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void __init plat_time_init(void)
struct clk *clk;

of_clk_init(NULL);
clocksource_probe();
timer_probe();

np = of_get_cpu_node(0, NULL);
if (!np) {
Expand Down
2 changes: 1 addition & 1 deletion arch/nios2/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void __init time_init(void)
if (count < 2)
panic("%d timer is found, it needs 2 timers in system\n", count);

clocksource_probe();
timer_probe();
}

TIMER_OF_DECLARE(nios2_timer, ALTR_TIMER_COMPATIBLE, nios2_time_init);
2 changes: 1 addition & 1 deletion arch/sh/boards/of-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void __init sh_of_mem_reserve(void)
static void __init sh_of_time_init(void)
{
pr_info("SH generic board support: scanning for clocksource devices\n");
clocksource_probe();
timer_probe();
}

static void __init sh_of_setup(char **cmdline_p)
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void __init time_init(void)
local_timer_setup(0);
setup_irq(this_cpu_ptr(&ccount_timer)->evt.irq, &timer_irqaction);
sched_clock_register(ccount_sched_clock_read, 32, ccount_freq);
clocksource_probe();
timer_probe();
}

/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/clocksource/clksrc-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern struct of_device_id __clksrc_of_table[];
static const struct of_device_id __clksrc_of_table_sentinel
__used __section(__clksrc_of_table_end);

void __init clocksource_probe(void)
void __init timer_probe(void)
{
struct device_node *np;
const struct of_device_id *match;
Expand Down
4 changes: 2 additions & 2 deletions include/linux/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ extern int clocksource_i8253_init(void);
OF_DECLARE_1_RET(clksrc, name, compat, fn)

#ifdef CONFIG_CLKSRC_PROBE
extern void clocksource_probe(void);
extern void timer_probe(void);
#else
static inline void clocksource_probe(void) {}
static inline void timer_probe(void) {}
#endif

#define CLOCKSOURCE_ACPI_DECLARE(name, table_id, fn) \
Expand Down

0 comments on commit ba5d08c

Please sign in to comment.