Lines Matching +full:per +full:- +full:cpu +full:- +full:cluster
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
39 #include <linux/cpu.h>
46 /* This array is per cluster of CPUs (Each NPS400 cluster got 256 CPUs) */
74 return -EINVAL; in nps_get_timer_clk()
82 int cluster = raw_smp_processor_id() >> NPS_CLUSTER_OFFSET; in nps_clksrc_read() local
84 return (u64)ioread32be(nps_msu_reg_low_addr[cluster]); in nps_clksrc_read()
89 int ret, cluster; in nps_setup_clocksource() local
94 for (cluster = 0; cluster < NPS_CLUSTER_NUM; cluster++) in nps_setup_clocksource()
95 nps_msu_reg_low_addr[cluster] = in nps_setup_clocksource()
96 nps_host_reg((cluster << NPS_CLUSTER_OFFSET), in nps_setup_clocksource()
103 ret = clocksource_mmio_init(nps_msu_reg_low_addr, "nps-tick", in nps_setup_clocksource()
113 TIMER_OF_DECLARE(ezchip_nps400_clksrc, "ezchip,nps400-timer",
115 TIMER_OF_DECLARE(ezchip_nps400_clk_src, "ezchip,nps400-timer1",
128 * Interrupt Enabled (IE) - re-arm the timer
129 * Not Halted (NH) - is cleared when working with JTAG (for debug)
151 /* Acknowledge and if needed re-arm the timer */ in nps_clkevent_rm_thread()
220 evt->event_handler(evt); in timer_irq_handler()
225 static int nps_timer_starting_cpu(unsigned int cpu) in nps_timer_starting_cpu() argument
229 evt->cpumask = cpumask_of(smp_processor_id()); in nps_timer_starting_cpu()
237 static int nps_timer_dying_cpu(unsigned int cpu) in nps_timer_dying_cpu() argument
251 return -EINVAL; in nps_setup_clockevent()
260 "Timer0 (per-cpu-tick)", in nps_setup_clockevent()
282 TIMER_OF_DECLARE(ezchip_nps400_clk_evt, "ezchip,nps400-timer0",