Lines Matching +full:switch +full:- +full:frequency +full:- +full:hz
1 // SPDX-License-Identifier: GPL-2.0
15 #define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
36 .name = "a20r-timer",
53 cd->event_handler(cd); in a20r_interrupt()
59 * a20r platform uses 2 counters to divide the input frequency.
67 cd->cpumask = cpumask_of(cpu); in sni_a20r_timer_setup()
70 IRQF_PERCPU | IRQF_TIMER, "a20r-timer", cd)) in sni_a20r_timer_setup()
71 pr_err("Failed to register a20r-timer interrupt\n"); in sni_a20r_timer_setup()
76 #define SNI_8254_TCSAMP_COUNTER ((SNI_8254_TICK_RATE / HZ) + 255)
103 * for every 1/HZ seconds. We round off the nearest 1 MHz of master in dosample()
104 * clock (= 1000000 / HZ / 2). in dosample()
106 /*return (ct1 - ct0 + (500000/HZ/2)) / (500000/HZ) * (500000/HZ);*/ in dosample()
107 return (ct1 - ct0) / (500000/HZ) * (500000/HZ); in dosample()
125 * but this one works just fine so I am not going to futz around. ;-) in plat_time_init()
153 (int) (r4k_tick / (500000 / HZ)), in plat_time_init()
154 (int) (r4k_tick % (500000 / HZ))); in plat_time_init()
156 mips_hpt_frequency = r4k_tick * HZ; in plat_time_init()
158 switch (sni_brd_type) { in plat_time_init()