projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039a9dc
)
using kfifo_in_spinlocked instead of separate code.
author
Ge Gao
<ggao@invensense.com>
Mon, 4 Mar 2013 23:27:00 +0000
(23:27 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 17 Mar 2013 20:14:37 +0000
(20:14 +0000)
Signed-off-by: Ge Gao <ggao@invensense.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
patch
|
blob
|
history
diff --git
a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
index 331781ffbb1514df87acdc06df2927a915d74ed0..7da0832f187b8d320cd8618eb3379b2015bee927 100644
(file)
--- a/
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
+++ b/
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
@@
-105,9
+105,8
@@
irqreturn_t inv_mpu6050_irq_handler(int irq, void *p)
s64 timestamp;
timestamp = iio_get_time_ns();
- spin_lock(&st->time_stamp_lock);
- kfifo_in(&st->timestamps, ×tamp, 1);
- spin_unlock(&st->time_stamp_lock);
+ kfifo_in_spinlocked(&st->timestamps, ×tamp, 1,
+ &st->time_stamp_lock);
return IRQ_WAKE_THREAD;
}