forked from mirrors/linux
		
	clocksource/drivers/jcore: Use request_percpu_irq()
Use request_percpu_irq() instead of request_irq() to solve the following sparse warning: jcore-pit.c:173:40: warning: incorrect type in argument 5 (different address spaces) jcore-pit.c:173:40: expected void *dev jcore-pit.c:173:40: got struct jcore_pit [noderef] __percpu *static [assigned] [toplevel] jcore_pit_percpu Compile tested only. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Rich Felker <dalias@libc.org> Link: https://lore.kernel.org/r/20240902104810.21080-1-ubizjak@gmail.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
		
							parent
							
								
									2e02da1d86
								
							
						
					
					
						commit
						69a9dcbd2d
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -120,7 +120,7 @@ static int jcore_pit_local_init(unsigned cpu)
 | 
			
		|||
 | 
			
		||||
static irqreturn_t jcore_timer_interrupt(int irq, void *dev_id)
 | 
			
		||||
{
 | 
			
		||||
	struct jcore_pit *pit = this_cpu_ptr(dev_id);
 | 
			
		||||
	struct jcore_pit *pit = dev_id;
 | 
			
		||||
 | 
			
		||||
	if (clockevent_state_oneshot(&pit->ced))
 | 
			
		||||
		jcore_pit_disable(pit);
 | 
			
		||||
| 
						 | 
				
			
			@ -168,8 +168,7 @@ static int __init jcore_pit_init(struct device_node *node)
 | 
			
		|||
		return -ENOMEM;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	err = request_irq(pit_irq, jcore_timer_interrupt,
 | 
			
		||||
			  IRQF_TIMER | IRQF_PERCPU,
 | 
			
		||||
	err = request_percpu_irq(pit_irq, jcore_timer_interrupt,
 | 
			
		||||
				 "jcore_pit", jcore_pit_percpu);
 | 
			
		||||
	if (err) {
 | 
			
		||||
		pr_err("pit irq request failed: %d\n", err);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue