pit.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) | pit.c (f9a015391e8908e68bd3147a8a5d8ac5f3ea2126) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/***************************************************************************/ 3 4/* 5 * pit.c -- Freescale ColdFire PIT timer. Currently this type of 6 * hardware timer only exists in the Freescale ColdFire 7 * 5270/5271, 5282 and 5208 CPUs. No doubt newer ColdFire 8 * family members will probably use it too. --- 122 unchanged lines hidden (view full) --- 131 .name = "pit", 132 .rating = 100, 133 .read = pit_read_clk, 134 .mask = CLOCKSOURCE_MASK(32), 135}; 136 137/***************************************************************************/ 138 | 1// SPDX-License-Identifier: GPL-2.0 2/***************************************************************************/ 3 4/* 5 * pit.c -- Freescale ColdFire PIT timer. Currently this type of 6 * hardware timer only exists in the Freescale ColdFire 7 * 5270/5271, 5282 and 5208 CPUs. No doubt newer ColdFire 8 * family members will probably use it too. --- 122 unchanged lines hidden (view full) --- 131 .name = "pit", 132 .rating = 100, 133 .read = pit_read_clk, 134 .mask = CLOCKSOURCE_MASK(32), 135}; 136 137/***************************************************************************/ 138 |
139void hw_timer_init(irq_handler_t handler) | 139void hw_timer_init(void) |
140{ 141 int ret; 142 143 cf_pit_clockevent.cpumask = cpumask_of(smp_processor_id()); 144 cf_pit_clockevent.mult = div_sc(FREQ, NSEC_PER_SEC, 32); 145 cf_pit_clockevent.max_delta_ns = 146 clockevent_delta2ns(0xFFFF, &cf_pit_clockevent); 147 cf_pit_clockevent.max_delta_ticks = 0xFFFF; --- 15 unchanged lines hidden --- | 140{ 141 int ret; 142 143 cf_pit_clockevent.cpumask = cpumask_of(smp_processor_id()); 144 cf_pit_clockevent.mult = div_sc(FREQ, NSEC_PER_SEC, 32); 145 cf_pit_clockevent.max_delta_ns = 146 clockevent_delta2ns(0xFFFF, &cf_pit_clockevent); 147 cf_pit_clockevent.max_delta_ticks = 0xFFFF; --- 15 unchanged lines hidden --- |