summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Nash <enash54@gmail.com>2013-07-27 20:48:42 -0400
committerroshni.shah <roshni.shah@timesys.com>2014-01-04 19:33:22 -0500
commita62c3fe5e5d0836d963165fbaf2d3930f421beec (patch)
treeb31e01dcecf291b4a997601e48df6b249c67e495 /include
parent209802ceb34b37c59a7ee1f824f04f460d13f5d4 (diff)
add debugfs statistics and some code cleanup
Diffstat (limited to 'include')
-rw-r--r--include/linux/mvf_sema4.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mvf_sema4.h b/include/linux/mvf_sema4.h
index 898065afb23f..7a93551e4905 100644
--- a/include/linux/mvf_sema4.h
+++ b/include/linux/mvf_sema4.h
@@ -1,10 +1,22 @@
#ifndef __MVF_SEMA4__
#define __MVF_SEMA4__
+#include <linux/sched.h>
+
+#define MVF_SHMEM_SEMAPHORE_NUMBER (1)
+#define MVF_PRINTF_SEMAPHORE_NUMBER (2)
+#define MVF_I2C_SEMAPHORE_NUMBER (3)
+#define MVF_RESERVED1_SEMAPHORE_NUMBER (4)
+#define MVF_RESERVED2_SEMAPHORE_NUMBER (5)
+
typedef struct mvf_sema4_handle_struct {
int gate_num;
int use_interrupts;
wait_queue_head_t wait_queue;
+ // stats
+ unsigned long attempts;
+ unsigned long interrupts;
+ struct dentry *debugfs_file;
} MVF_SEMA4;
int mvf_sema4_assign(int gate_num, bool use_interrupts, MVF_SEMA4** sema4_p);