mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 bad6722e47
			
		
	
	
		bad6722e47
		
	
	
	
	
		
			
			Consolidate the machine_kexec_mask_interrupts implementation into a common function located in a new file: kernel/irq/kexec.c. This removes duplicate implementations from architecture-specific files in arch/arm, arch/arm64, arch/powerpc, and arch/riscv, reducing code duplication and improving maintainability. The new implementation retains architecture-specific behavior for CONFIG_GENERIC_IRQ_KEXEC_CLEAR_VM_FORWARD, which was previously implemented for ARM64. When enabled (currently for ARM64), it clears the active state of interrupts forwarded to virtual machines (VMs) before handling other interrupt masking operations. Signed-off-by: Eliav Farber <farbere@amazon.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20241204142003.32859-2-farbere@amazon.com
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			833 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			833 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # SPDX-License-Identifier: GPL-2.0
 | |
| 
 | |
| obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o kexec.o
 | |
| obj-$(CONFIG_IRQ_TIMINGS) += timings.o
 | |
| ifeq ($(CONFIG_TEST_IRQ_TIMINGS),y)
 | |
| 	CFLAGS_timings.o += -DDEBUG
 | |
| endif
 | |
| obj-$(CONFIG_GENERIC_IRQ_CHIP) += generic-chip.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_PROBE) += autoprobe.o
 | |
| obj-$(CONFIG_IRQ_DOMAIN) += irqdomain.o
 | |
| obj-$(CONFIG_IRQ_SIM) += irq_sim.o
 | |
| obj-$(CONFIG_PROC_FS) += proc.o
 | |
| obj-$(CONFIG_GENERIC_PENDING_IRQ) += migration.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_MIGRATION) += cpuhotplug.o
 | |
| obj-$(CONFIG_PM_SLEEP) += pm.o
 | |
| obj-$(CONFIG_GENERIC_MSI_IRQ) += msi.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_IPI) += ipi.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_IPI_MUX) += ipi-mux.o
 | |
| obj-$(CONFIG_SMP) += affinity.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_DEBUGFS) += debugfs.o
 | |
| obj-$(CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR) += matrix.o
 |