RE: [PATCH v3 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-01 Thread Thomas Gleixner
On Tue, 1 Nov 2016, Noam Camus wrote: > >> +static int nps_clkevent_set_next_event(unsigned long delta, > >> + struct clock_event_device *dev) { > >> + struct irq_desc *desc = irq_to_desc(nps_timer0_irq); > >> + struct irq_chip *chip = irq_data_get_irq_chip(&desc->

RE: [PATCH v3 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-01 Thread Noam Camus
> From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Monday, October 31, 2016 8:13 PM >> >> -static unsigned long nps_timer_rate; >> +static unsigned long nps_timer1_freq; >This should be either in the previous patch or seperate. Will fix in V4 >> @@ -101,3 +101,215 @@ static int

Re: [PATCH v3 3/3] clocksource: Add clockevent support to NPS400 driver

2016-10-31 Thread Thomas Gleixner
On Mon, 31 Oct 2016, Noam Camus wrote: > > -static unsigned long nps_timer_rate; > +static unsigned long nps_timer1_freq; This should be either in the previous patch or seperate. > static int nps_get_timer_clk(struct device_node *node, >unsigned long *timer_freq, >

[PATCH v3 3/3] clocksource: Add clockevent support to NPS400 driver

2016-10-31 Thread Noam Camus
From: Noam Camus Till now we used clockevent from generic ARC driver. This was enough as long as we worked with simple multicore SoC. When we are working with multithread SoC each HW thread can be scheduled to receive timer interrupt using timer mask register. This patch will provide a way to con