mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	MIPS: Select CONFIG_HANDLE_DOMAIN_IRQ and make it work.
Per the subject, always select HANDLE_DOMAIN_IRQ, and implement set_irq_regs() so that it actually works. Signed-off-by: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/12496/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
		
							parent
							
								
									2253e0b9d9
								
							
						
					
					
						commit
						1d2753a66a
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		|  | @ -62,6 +62,7 @@ config MIPS | |||
| 	select HAVE_IRQ_TIME_ACCOUNTING | ||||
| 	select GENERIC_TIME_VSYSCALL | ||||
| 	select ARCH_CLOCKSOURCE_DATA | ||||
| 	select HANDLE_DOMAIN_IRQ | ||||
| 
 | ||||
| menu "Machine selection" | ||||
| 
 | ||||
|  |  | |||
|  | @ -18,4 +18,14 @@ static inline struct pt_regs *get_irq_regs(void) | |||
| 	return current_thread_info()->regs; | ||||
| } | ||||
| 
 | ||||
| static inline struct pt_regs *set_irq_regs(struct pt_regs *new_regs) | ||||
| { | ||||
| 	struct pt_regs *old_regs; | ||||
| 
 | ||||
| 	old_regs = get_irq_regs(); | ||||
| 	current_thread_info()->regs = new_regs; | ||||
| 
 | ||||
| 	return old_regs; | ||||
| } | ||||
| 
 | ||||
| #endif /* __ASM_IRQ_REGS_H */ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 David Daney
						David Daney