[rfc -tip 0/2] Implementing self IPI with NMI destination

From: Cyrill Gorcunov
Date: Wed Oct 27 2010 - 16:08:57 EST


Here is self-IPI with NMI destination implemented. Don was testing
perf NMI's and we found that we don't have a simple call for self-nmi IPI.

So there is two way of implementing such facility:

1) Make .send_IPI_self to check for NMI_VECTOR in arguments
and convert this call internally to NMI IPI with self in
destination.

2) Make a separate .send_IPI_self_nmi function and call it only
if needed.

The series implements 1st choise but I tend to think that 2nd might
be more preferred since it would not bring overhead into .send_IPI_self
and would make code a bit less messed.

Anyway, this series is not for merging yet but rather to collect
complains about this approach. And to be fair we seem don't have
x2apic machine at moment so x2apic mode is not tested at all.

In short -- please check and review this two patches. Anything
is welcome ;)

Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/