Skip to content

Commit b8969ef

Browse files
author
Kevin Hilman
committed
Merge branch 'soc/sched_clock' into next/soc
From Stephen Boyd: * soc/sched_clock: ARM: versatile: Switch to sched_clock_register() ARM: orion: Switch to sched_clock_register() ARM: OMAP: Switch to sched_clock_register() ARM: iop: Switch to sched_clock_register() ARM: u300: Switch to sched_clock_register() ARM: sa1100: Switch to sched_clock_register() ARM: pxa: Switch to sched_clock_register() ARM: OMAP2+: Switch to sched_clock_register() ARM: OMAP1: Switch to sched_clock_register() ARM: msm: Switch to sched_clock_register() ARM: mmp: Switch to sched_clock_register() ARM: IXP4xx: Switch to sched_clock_register() ARM: integrator: Switch to sched_clock_register() ARM: imx: Switch to sched_clock_register() ARM: davinci: Switch to sched_clock_register() ARM: clps711x: Switch to sched_clock_register() ARM: timer-sp: Switch to sched_clock_register() Signed-off-by: Kevin Hilman <khilman@linaro.org>
2 parents b19e11f + d25f1d5 commit b8969ef

17 files changed

Lines changed: 34 additions & 34 deletions

File tree

‎arch/arm/common/timer-sp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static long __init sp804_get_clock_rate(struct clk *clk)
6666

6767
static void __iomem *sched_clock_base;
6868

69-
static u32 sp804_read(void)
69+
static u64 notrace sp804_read(void)
7070
{
7171
return ~readl_relaxed(sched_clock_base + TIMER_VALUE);
7272
}
@@ -104,7 +104,7 @@ void __init __sp804_clocksource_and_sched_clock_init(void __iomem *base,
104104

105105
if (use_sched_clock) {
106106
sched_clock_base = base;
107-
setup_sched_clock(sp804_read, 32, rate);
107+
sched_clock_register(sp804_read, 32, rate);
108108
}
109109
}
110110

‎arch/arm/mach-clps711x/common.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ asmlinkage void __exception_irq_entry clps711x_handle_irq(struct pt_regs *regs)
259259
} while (1);
260260
}
261261

262-
static u32 notrace clps711x_sched_clock_read(void)
262+
static u64 notrace clps711x_sched_clock_read(void)
263263
{
264264
return ~readw_relaxed(CLPS711X_VIRT_BASE + TC1D);
265265
}
@@ -366,7 +366,7 @@ void __init clps711x_timer_init(void)
366366
tmp = clps_readl(SYSCON1) & ~(SYSCON1_TC1S | SYSCON1_TC1M);
367367
clps_writel(tmp, SYSCON1);
368368

369-
setup_sched_clock(clps711x_sched_clock_read, 16, timl);
369+
sched_clock_register(clps711x_sched_clock_read, 16, timl);
370370

371371
clocksource_mmio_init(CLPS711X_VIRT_BASE + TC1D,
372372
"clps711x_clocksource", timl, 300, 16,

‎arch/arm/mach-davinci/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static struct clocksource clocksource_davinci = {
285285
/*
286286
* Overwrite weak default sched_clock with something more precise
287287
*/
288-
static u32 notrace davinci_read_sched_clock(void)
288+
static u64 notrace davinci_read_sched_clock(void)
289289
{
290290
return timer32_read(&timers[TID_CLOCKSOURCE]);
291291
}
@@ -391,7 +391,7 @@ void __init davinci_timer_init(void)
391391
davinci_clock_tick_rate))
392392
printk(err, clocksource_davinci.name);
393393

394-
setup_sched_clock(davinci_read_sched_clock, 32,
394+
sched_clock_register(davinci_read_sched_clock, 32,
395395
davinci_clock_tick_rate);
396396

397397
/* setup clockevent */

‎arch/arm/mach-imx/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void gpt_irq_acknowledge(void)
111111

112112
static void __iomem *sched_clock_reg;
113113

114-
static u32 notrace mxc_read_sched_clock(void)
114+
static u64 notrace mxc_read_sched_clock(void)
115115
{
116116
return sched_clock_reg ? __raw_readl(sched_clock_reg) : 0;
117117
}
@@ -123,7 +123,7 @@ static int __init mxc_clocksource_init(struct clk *timer_clk)
123123

124124
sched_clock_reg = reg;
125125

126-
setup_sched_clock(mxc_read_sched_clock, 32, c);
126+
sched_clock_register(mxc_read_sched_clock, 32, c);
127127
return clocksource_mmio_init(reg, "mxc_timer1", c, 200, 32,
128128
clocksource_mmio_readl_up);
129129
}

‎arch/arm/mach-integrator/integrator_ap.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ struct amba_pl010_data ap_uart_data = {
277277

278278
static unsigned long timer_reload;
279279

280-
static u32 notrace integrator_read_sched_clock(void)
280+
static u64 notrace integrator_read_sched_clock(void)
281281
{
282282
return -readl((void __iomem *) TIMER2_VA_BASE + TIMER_VALUE);
283283
}
@@ -298,7 +298,7 @@ static void integrator_clocksource_init(unsigned long inrate,
298298

299299
clocksource_mmio_init(base + TIMER_VALUE, "timer2",
300300
rate, 200, 16, clocksource_mmio_readl_down);
301-
setup_sched_clock(integrator_read_sched_clock, 16, rate);
301+
sched_clock_register(integrator_read_sched_clock, 16, rate);
302302
}
303303

304304
static void __iomem * clkevt_base;

‎arch/arm/mach-ixp4xx/common.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void __init ixp4xx_sys_init(void)
475475
/*
476476
* sched_clock()
477477
*/
478-
static u32 notrace ixp4xx_read_sched_clock(void)
478+
static u64 notrace ixp4xx_read_sched_clock(void)
479479
{
480480
return *IXP4XX_OSTS;
481481
}
@@ -493,7 +493,7 @@ unsigned long ixp4xx_timer_freq = IXP4XX_TIMER_FREQ;
493493
EXPORT_SYMBOL(ixp4xx_timer_freq);
494494
static void __init ixp4xx_clocksource_init(void)
495495
{
496-
setup_sched_clock(ixp4xx_read_sched_clock, 32, ixp4xx_timer_freq);
496+
sched_clock_register(ixp4xx_read_sched_clock, 32, ixp4xx_timer_freq);
497497

498498
clocksource_mmio_init(NULL, "OSTS", ixp4xx_timer_freq, 200, 32,
499499
ixp4xx_clocksource_read);

‎arch/arm/mach-mmp/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static inline uint32_t timer_read(void)
6161
return __raw_readl(mmp_timer_base + TMR_CVWR(1));
6262
}
6363

64-
static u32 notrace mmp_read_sched_clock(void)
64+
static u64 notrace mmp_read_sched_clock(void)
6565
{
6666
return timer_read();
6767
}
@@ -195,7 +195,7 @@ void __init timer_init(int irq)
195195
{
196196
timer_config();
197197

198-
setup_sched_clock(mmp_read_sched_clock, 32, CLOCK_TICK_RATE);
198+
sched_clock_register(mmp_read_sched_clock, 32, CLOCK_TICK_RATE);
199199

200200
ckevt.cpumask = cpumask_of(0);
201201

‎arch/arm/mach-msm/timer.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static struct notifier_block msm_timer_cpu_nb = {
187187
.notifier_call = msm_timer_cpu_notify,
188188
};
189189

190-
static notrace u32 msm_sched_clock_read(void)
190+
static u64 notrace msm_sched_clock_read(void)
191191
{
192192
return msm_clocksource.read(&msm_clocksource);
193193
}
@@ -229,7 +229,7 @@ static void __init msm_timer_init(u32 dgt_hz, int sched_bits, int irq,
229229
res = clocksource_register_hz(cs, dgt_hz);
230230
if (res)
231231
pr_err("clocksource_register failed\n");
232-
setup_sched_clock(msm_sched_clock_read, sched_bits, dgt_hz);
232+
sched_clock_register(msm_sched_clock_read, sched_bits, dgt_hz);
233233
}
234234

235235
#ifdef CONFIG_OF

‎arch/arm/mach-omap1/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static __init void omap_init_mpu_timer(unsigned long rate)
181181
* ---------------------------------------------------------------------------
182182
*/
183183

184-
static u32 notrace omap_mpu_read_sched_clock(void)
184+
static u64 notrace omap_mpu_read_sched_clock(void)
185185
{
186186
return ~omap_mpu_timer_read(1);
187187
}
@@ -193,7 +193,7 @@ static void __init omap_init_clocksource(unsigned long rate)
193193
"%s: can't register clocksource!\n";
194194

195195
omap_mpu_timer_start(1, ~0, 1);
196-
setup_sched_clock(omap_mpu_read_sched_clock, 32, rate);
196+
sched_clock_register(omap_mpu_read_sched_clock, 32, rate);
197197

198198
if (clocksource_mmio_init(&timer->read_tim, "mpu_timer2", rate,
199199
300, 32, clocksource_mmio_readl_down))

‎arch/arm/mach-omap2/timer.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static struct clocksource clocksource_gpt = {
379379
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
380380
};
381381

382-
static u32 notrace dmtimer_read_sched_clock(void)
382+
static u64 notrace dmtimer_read_sched_clock(void)
383383
{
384384
if (clksrc.reserved)
385385
return __omap_dm_timer_read_counter(&clksrc,
@@ -471,7 +471,7 @@ static void __init omap2_gptimer_clocksource_init(int gptimer_id,
471471
__omap_dm_timer_load_start(&clksrc,
472472
OMAP_TIMER_CTRL_ST | OMAP_TIMER_CTRL_AR, 0,
473473
OMAP_TIMER_NONPOSTED);
474-
setup_sched_clock(dmtimer_read_sched_clock, 32, clksrc.rate);
474+
sched_clock_register(dmtimer_read_sched_clock, 32, clksrc.rate);
475475

476476
if (clocksource_register_hz(&clocksource_gpt, clksrc.rate))
477477
pr_err("Could not register clocksource %s\n",

0 commit comments

Comments
 (0)