On Fri, Mar 20, 2015 at 12:28:25PM +0100, Alexander Graf wrote: > > > On 20.03.15 10:39, Paul Mackerras wrote: > > + /* On POWER8 for IPIs to threads in the same core, use msgsnd */ > > + if (cpu_has_feature(CPU_FTR_ARCH_207S) && > > + (cpu & ~7) == (raw_smp_processor_id() & ~7)) { > > Can we somehow encapsulate the secret knowledge that 8 threads mean one > core? Looks like I want: if (cpu_has_feature(CPU_FTR_ARCH_207S) && cpu_first_thread_sibling(cpu) == cpu_first_thread_sibling(raw_smp_processor_id())) { Paul. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html