[PATCH 2/3] add-lis302dl-overrun-stats.patch
Andy Green
andy at openmoko.com
Tue Feb 3 10:42:48 CET 2009
We can see and account for any overruns caused by IRQ latency
now that we fetch the status register. This patch adds a /sys
node so it can be queried, and accounting.
Signed-off-by: Andy Green <andy at openmoko.com>
---
include/linux/lis302dl.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h
index 662ac60..01c4ac9 100644
--- a/include/linux/lis302dl.h
+++ b/include/linux/lis302dl.h
@@ -31,6 +31,7 @@ struct lis302dl_info {
unsigned int flags;
unsigned int threshold;
unsigned int duration;
+ u32 overruns;
struct {
unsigned int threshold; /* mg */
unsigned int duration; /* ms */
More information about the openmoko-kernel
mailing list