Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch/powerpc: Remove unused function icp_native_cause_ipi_rm()

Remove icp_native_cause_ipi_rm() as it has no callers since
commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have
MMU on")

Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250101134251.436679-1-gautam@linux.ibm.com

authored by

Gautam Menghani and committed by
Madhavan Srinivasan
65acbd12 f17bcb97

-22
-1
arch/powerpc/include/asm/xics.h
··· 31 31 #ifdef CONFIG_PPC_ICP_NATIVE 32 32 extern int icp_native_init(void); 33 33 extern void icp_native_flush_interrupt(void); 34 - extern void icp_native_cause_ipi_rm(int cpu); 35 34 #else 36 35 static inline int icp_native_init(void) { return -ENODEV; } 37 36 #endif
-21
arch/powerpc/sysdev/xics/icp-native.c
··· 145 145 icp_native_set_qirr(cpu, IPI_PRIORITY); 146 146 } 147 147 148 - #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE 149 - void icp_native_cause_ipi_rm(int cpu) 150 - { 151 - /* 152 - * Currently not used to send IPIs to another CPU 153 - * on the same core. Only caller is KVM real mode. 154 - * Need the physical address of the XICS to be 155 - * previously saved in kvm_hstate in the paca. 156 - */ 157 - void __iomem *xics_phys; 158 - 159 - /* 160 - * Just like the cause_ipi functions, it is required to 161 - * include a full barrier before causing the IPI. 162 - */ 163 - xics_phys = paca_ptrs[cpu]->kvm_hstate.xics_phys; 164 - mb(); 165 - __raw_rm_writeb(IPI_PRIORITY, xics_phys + XICS_MFRR); 166 - } 167 - #endif 168 - 169 148 /* 170 149 * Called when an interrupt is received on an off-line CPU to 171 150 * clear the interrupt, so that the CPU can go back to nap mode.