diff options
| author | Arve Hjønnevåg <arve@android.com> | 2016-05-05 18:43:44 -0400 |
|---|---|---|
| committer | Stephen Wolfe <swolfe@nvidia.com> | 2018-07-27 17:12:44 -0400 |
| commit | dde4d4cf917e3ebec415a728c4d3a422c4c630b4 (patch) | |
| tree | 4ff3b9f954653a7f61ec975c1ebf94b52a9cef66 /include/linux | |
| parent | e9c6d11022d2ac66fbaf30cd07318ca9ddc9d326 (diff) | |
trusty: Add notifier before and after every smc call.
Called with local interrupts disabled.
Change-Id: I6feb9cee349f78f8d228294f238b0b420a6d4beb
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/trusty/trusty.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/trusty/trusty.h b/include/linux/trusty/trusty.h index 30d4300ba..ce00c1d46 100644 --- a/include/linux/trusty/trusty.h +++ b/include/linux/trusty/trusty.h | |||
| @@ -43,4 +43,14 @@ static inline s64 trusty_fast_call64(struct device *dev, | |||
| 43 | #endif | 43 | #endif |
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | struct notifier_block; | ||
| 47 | enum { | ||
| 48 | TRUSTY_CALL_PREPARE, | ||
| 49 | TRUSTY_CALL_RETURNED, | ||
| 50 | }; | ||
| 51 | int trusty_call_notifier_register(struct device *dev, | ||
| 52 | struct notifier_block *n); | ||
| 53 | int trusty_call_notifier_unregister(struct device *dev, | ||
| 54 | struct notifier_block *n); | ||
| 55 | |||
| 46 | #endif | 56 | #endif |
