fsl/mpic: Create and document the "single-cpu-affinity" device-tree flag
The Freescale MPIC (and perhaps others in the future) is incapable of routing non-IPI interrupts to more than once CPU at a time. Currently all of the Freescale boards msut pass the MPIC_SINGLE_DEST_CPU flag to mpic_alloc(), but that information should really be present in the device-tree. Older board code can't rely on the device-tree having the property set, but newer platforms won't need it manually specified in the code. [BenH: Remove unrelated changes, folded in a different patch] Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
98cca250ae
commit
9ca163c860
@@ -1187,6 +1187,8 @@ struct mpic * __init mpic_alloc(struct device_node *node,
|
||||
flags |= MPIC_BIG_ENDIAN;
|
||||
if (of_get_property(node, "pic-no-reset", NULL))
|
||||
flags |= MPIC_NO_RESET;
|
||||
if (of_get_property(node, "single-cpu-affinity", NULL))
|
||||
flags |= MPIC_SINGLE_DEST_CPU;
|
||||
if (of_device_is_compatible(node, "fsl,mpic"))
|
||||
flags |= MPIC_FSL;
|
||||
|
||||
|
Reference in New Issue
Block a user