| 
									
										
										
										
											2014-08-16 18:48:05 +02:00
										 |  |  | #ifndef __ASM_IRQ_WORK_H
 | 
					
						
							|  |  |  | #define __ASM_IRQ_WORK_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-21 17:01:07 +01:00
										 |  |  | #ifdef CONFIG_SMP
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-16 18:48:05 +02:00
										 |  |  | #include <asm/smp.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static inline bool arch_irq_work_has_interrupt(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return !!__smp_cross_call; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-21 17:01:07 +01:00
										 |  |  | #else
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static inline bool arch_irq_work_has_interrupt(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return false; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-16 18:48:05 +02:00
										 |  |  | #endif /* __ASM_IRQ_WORK_H */
 |