* [PATCH 0/2] fix two minor PPS issues
2011-02-08 23:31 ` Andrew Morton
@ 2011-02-25 14:11 ` Alexander Gordeev
2011-02-25 14:11 ` [PATCH 1/2] pps: initialize ts_real properly Alexander Gordeev
2011-02-25 14:11 ` [PATCH 2/2] pps: remove unreachable code Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
These patches fix two minor issues in PPS. The first is reported in
this thread and the second I found myself.
Alexander Gordeev (2):
pps: initialize ts_real properly
pps: remove unreachable code
drivers/pps/generators/pps_gen_parport.c | 5 -----
drivers/pps/kapi.c | 2 +-
2 files changed, 1 insertions(+), 6 deletions(-)
--
1.7.2.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] pps: initialize ts_real properly
2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
@ 2011-02-25 14:11 ` Alexander Gordeev
2011-02-25 14:11 ` [PATCH 2/2] pps: remove unreachable code Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
Initialize ts_real.flags to fix compiler warning about possible
uninitialized use of this field.
Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
---
drivers/pps/kapi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c
index cba1b43..a4e8eb9 100644
--- a/drivers/pps/kapi.c
+++ b/drivers/pps/kapi.c
@@ -168,7 +168,7 @@ void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event,
{
unsigned long flags;
int captured = 0;
- struct pps_ktime ts_real;
+ struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 };
/* check event type */
BUG_ON((event & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR)) == 0);
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] pps: remove unreachable code
2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
2011-02-25 14:11 ` [PATCH 1/2] pps: initialize ts_real properly Alexander Gordeev
@ 2011-02-25 14:11 ` Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
Remove code enabled only when CONFIG_PREEMPT_RT is turned on because it
is not used in the vanilla kernel.
Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
---
drivers/pps/generators/pps_gen_parport.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/pps/generators/pps_gen_parport.c b/drivers/pps/generators/pps_gen_parport.c
index b93af3e..dcd39fb 100644
--- a/drivers/pps/generators/pps_gen_parport.c
+++ b/drivers/pps/generators/pps_gen_parport.c
@@ -216,11 +216,6 @@ static void parport_attach(struct parport *port)
hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
device.timer.function = hrtimer_event;
-#ifdef CONFIG_PREEMPT_RT
- /* hrtimer interrupt will run in the interrupt context with this */
- device.timer.irqsafe = 1;
-#endif
-
hrtimer_start(&device.timer, next_intr_time(&device), HRTIMER_MODE_ABS);
return;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread