Skip to content

Commit 77d1c8e

Browse files
agotorvalds
authored andcommitted
pps: remove unreachable code
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> Cc: john stultz <johnstul@us.ibm.com> Cc: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent da23ef0 commit 77d1c8e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/pps/generators/pps_gen_parport.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,6 @@ static void parport_attach(struct parport *port)
216216

217217
hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
218218
device.timer.function = hrtimer_event;
219-
#ifdef CONFIG_PREEMPT_RT
220-
/* hrtimer interrupt will run in the interrupt context with this */
221-
device.timer.irqsafe = 1;
222-
#endif
223-
224219
hrtimer_start(&device.timer, next_intr_time(&device), HRTIMER_MODE_ABS);
225220

226221
return;

0 commit comments

Comments
 (0)