Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: gic: Add affinity-setting vendor hooks to gic
Add vendor hooks to allow vendor enhancements to GIC, specifically implementation-defined multi-CPU IRQ target affinity setting. This patch is a refactored version of the android13-5.15 commit 9c25e5d ("ANDROID: gic: Add vendor hook to GIC"). Bug: 266450121 Change-Id: I4a17ed20f8e868a6479fd53c0230b22652595b01 Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
- Loading branch information
Guru Das Srinagesh
authored and
Treehugger Robot
committed
Feb 1, 2023
1 parent
818d44d
commit 4cd99f6
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM gic | ||
|
||
#define TRACE_INCLUDE_PATH trace/hooks | ||
|
||
#if !defined(_TRACE_HOOK_GIC_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _TRACE_HOOK_GIC_H | ||
|
||
#include <trace/hooks/vendor_hooks.h> | ||
|
||
struct irq_data; | ||
DECLARE_HOOK(android_vh_gic_set_affinity, | ||
TP_PROTO(struct irq_data *d, const struct cpumask *mask_val, | ||
bool force, u8 *gic_cpu_map, void __iomem *reg), | ||
TP_ARGS(d, mask_val, force, gic_cpu_map, reg)); | ||
|
||
#endif /* _TRACE_HOOK_GIC_H */ | ||
/* This part must be outside protection */ | ||
#include <trace/define_trace.h> |