arch_timer.c (923df96b9f31b7d08d8438ff9677326d9537accf) arch_timer.c (d0a533b18235d36206b9b422efadb7cee444dfdb)
1/*
2 * linux/arch/arm/kernel/arch_timer.c
3 *
4 * Copyright (C) 2011 ARM Ltd.
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 18 unchanged lines hidden (view full) ---

27#include <asm/sched_clock.h>
28
29static unsigned long arch_timer_rate;
30static int arch_timer_ppi;
31static int arch_timer_ppi2;
32
33static struct clock_event_device __percpu **arch_timer_evt;
34
1/*
2 * linux/arch/arm/kernel/arch_timer.c
3 *
4 * Copyright (C) 2011 ARM Ltd.
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 18 unchanged lines hidden (view full) ---

27#include <asm/sched_clock.h>
28
29static unsigned long arch_timer_rate;
30static int arch_timer_ppi;
31static int arch_timer_ppi2;
32
33static struct clock_event_device __percpu **arch_timer_evt;
34
35extern void init_current_timer_delay(unsigned long freq);
36
35/*
36 * Architected system timer support.
37 */
38
39#define ARCH_TIMER_CTRL_ENABLE (1 << 0)
40#define ARCH_TIMER_CTRL_IT_MASK (1 << 1)
41#define ARCH_TIMER_CTRL_IT_STAT (1 << 2)
42

--- 256 unchanged lines hidden (view full) ---

299 */
300 arch_timer_global_evt.cpumask = cpumask_of(0);
301 err = arch_timer_setup(&arch_timer_global_evt);
302 }
303
304 if (err)
305 goto out_free_irq;
306
37/*
38 * Architected system timer support.
39 */
40
41#define ARCH_TIMER_CTRL_ENABLE (1 << 0)
42#define ARCH_TIMER_CTRL_IT_MASK (1 << 1)
43#define ARCH_TIMER_CTRL_IT_STAT (1 << 2)
44

--- 256 unchanged lines hidden (view full) ---

301 */
302 arch_timer_global_evt.cpumask = cpumask_of(0);
303 err = arch_timer_setup(&arch_timer_global_evt);
304 }
305
306 if (err)
307 goto out_free_irq;
308
309 init_current_timer_delay(arch_timer_rate);
307 return 0;
308
309out_free_irq:
310 free_percpu_irq(arch_timer_ppi, arch_timer_evt);
311 if (arch_timer_ppi2)
312 free_percpu_irq(arch_timer_ppi2, arch_timer_evt);
313
314out_free:

--- 44 unchanged lines hidden ---
310 return 0;
311
312out_free_irq:
313 free_percpu_irq(arch_timer_ppi, arch_timer_evt);
314 if (arch_timer_ppi2)
315 free_percpu_irq(arch_timer_ppi2, arch_timer_evt);
316
317out_free:

--- 44 unchanged lines hidden ---