From dde4d4cf917e3ebec415a728c4d3a422c4c630b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= Date: Thu, 5 May 2016 15:43:44 -0700 Subject: trusty: Add notifier before and after every smc call. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Called with local interrupts disabled. Change-Id: I6feb9cee349f78f8d228294f238b0b420a6d4beb Signed-off-by: Arve Hjønnevåg --- include/linux/trusty/trusty.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/linux') 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, #endif #endif +struct notifier_block; +enum { + TRUSTY_CALL_PREPARE, + TRUSTY_CALL_RETURNED, +}; +int trusty_call_notifier_register(struct device *dev, + struct notifier_block *n); +int trusty_call_notifier_unregister(struct device *dev, + struct notifier_block *n); + #endif -- cgit v1.2.2