mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09: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>
(cherry picked from commit f52f343587)
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
committed by
Todd Kjos
parent
3ccc4b2705
commit
fdb0133879
@@ -1273,7 +1273,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);
|
||||
|
||||
/*
|
||||
|
||||
@@ -16,8 +16,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));
|
||||
|
||||
#endif /* _TRACE_HOOK_GIC_V3_H */
|
||||
/* This part must be outside protection */
|
||||
|
||||
Reference in New Issue
Block a user