mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: gic-v3: Update vendor hook to set affinity in GIC v3
GIC provides implementation specific registers, to configure affinity of a SPI. Update the existing affinity hook to allow vendors to configure those implementation defined settings. Bug: 180471389 Change-Id: I273035da65eaeb346c0d8b303a722f4d8d7918d6 Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
This commit is contained in:
parent
9393bb52f8
commit
f52f343587
|
|
@ -1211,7 +1211,7 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
|
|||
reg = gic_dist_base(d) + offset + (index * 8);
|
||||
val = gic_mpidr_to_affinity(cpu_logical_map(cpu));
|
||||
|
||||
trace_android_vh_gic_v3_set_affinity(d, mask_val, &val);
|
||||
trace_android_vh_gic_v3_set_affinity(d, mask_val, &val, force, gic_dist_base(d));
|
||||
gic_write_irouter(val, reg);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ DECLARE_HOOK(android_vh_gic_v3_affinity_init,
|
|||
TP_ARGS(irq, offset, affinity));
|
||||
DECLARE_HOOK(android_vh_gic_v3_set_affinity,
|
||||
TP_PROTO(struct irq_data *d, const struct cpumask *mask_val,
|
||||
u64 *affinity),
|
||||
TP_ARGS(d, mask_val, affinity));
|
||||
u64 *affinity, bool force, void __iomem *base),
|
||||
TP_ARGS(d, mask_val, affinity, force, base));
|
||||
|
||||
/* macro versions of hooks are no longer required */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user