summaryrefslogtreecommitdiff
path: root/include/soc/tegra
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-09-12 23:29:03 +0300
committerThierry Reding <treding@nvidia.com>2021-10-04 22:27:21 +0300
commitaa54686e285c13bfbafc02e7cc3cf18f2fbca4b0 (patch)
tree0c018370e3b3fba5e9164f0513520cfcd50b85c7 /include/soc/tegra
parent45e934407b7efa08cde651d5669d1984a3a4bc69 (diff)
downloadlinux-aa54686e285c13bfbafc02e7cc3cf18f2fbca4b0.tar.xz
soc/tegra: irq: Add stubs needed for compile testing
Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc/tegra')
-rw-r--r--include/soc/tegra/irq.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/soc/tegra/irq.h b/include/soc/tegra/irq.h
index 8eb11a7109e4..94539551c8c1 100644
--- a/include/soc/tegra/irq.h
+++ b/include/soc/tegra/irq.h
@@ -6,8 +6,15 @@
#ifndef __SOC_TEGRA_IRQ_H
#define __SOC_TEGRA_IRQ_H
-#if defined(CONFIG_ARM)
+#include <linux/types.h>
+
+#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
bool tegra_pending_sgi(void);
+#else
+static inline bool tegra_pending_sgi(void)
+{
+ return false;
+}
#endif
#endif /* __SOC_TEGRA_IRQ_H */