projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e9344
)
soc/tegra: irq: Add stubs needed for compile testing
author
Dmitry Osipenko
<digetx@gmail.com>
Sun, 12 Sep 2021 20:29:03 +0000
(23:29 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Mon, 4 Oct 2021 19:27:21 +0000
(21:27 +0200)
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>
include/soc/tegra/irq.h
patch
|
blob
|
blame
|
history
diff --git
a/include/soc/tegra/irq.h
b/include/soc/tegra/irq.h
index 8eb11a7109e400cd9c69449bc6c999e6a94af48d..94539551c8c1f3a9e6b3abe46d71bd0a9e404537 100644
(file)
--- 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 */