summaryrefslogtreecommitdiff
path: root/us_manager/sspt/sspt_proc.c
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2014-04-14 18:53:21 +0400
committerVasiliy Ulyanov <v.ulyanov@samsung.com>2014-04-21 06:09:00 -0700
commit3729ea9622af80dec7f2dc616e0991be6f7709ba (patch)
treee7a84408a49e618d0aae4c85a636e96d5f9811e1 /us_manager/sspt/sspt_proc.c
parentc4598a886ca8c6c208e3c35b647b56de2371616b (diff)
downloadswap-modules-3729ea9622af80dec7f2dc616e0991be6f7709ba.tar.gz
swap-modules-3729ea9622af80dec7f2dc616e0991be6f7709ba.tar.bz2
swap-modules-3729ea9622af80dec7f2dc616e0991be6f7709ba.zip
[IMPROVE] ARM: move uprobes installation out of exception
Change-Id: I8e200847a84d2016fb81e007befcdd01952c4797 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
Diffstat (limited to 'us_manager/sspt/sspt_proc.c')
-rw-r--r--us_manager/sspt/sspt_proc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/us_manager/sspt/sspt_proc.c b/us_manager/sspt/sspt_proc.c
index f7693328..d1c8dcae 100644
--- a/us_manager/sspt/sspt_proc.c
+++ b/us_manager/sspt/sspt_proc.c
@@ -32,6 +32,14 @@
#include <us_manager/us_slot_manager.h>
#include <writer/swap_writer_module.h>
+
+#ifdef CONFIG_ARM
+#define mm_read_lock(task, mm, atomic, lock) \
+ mm = task->mm; \
+ lock = 0
+
+#define mm_read_unlock(mm, atomic, lock)
+#else /* CONFIG_ARM */
#define mm_read_lock(task, mm, atomic, lock) \
mm = atomic ? task->active_mm : get_task_mm(task); \
if (mm == NULL) { \
@@ -54,6 +62,8 @@
if (!atomic) { \
mmput(mm); \
}
+#endif /* CONFIG_ARM */
+
static LIST_HEAD(proc_probes_list);
static DEFINE_RWLOCK(sspt_proc_rwlock);