2012-06-17 19:52:06 +00:00
|
|
|
From 02630a5153eac2178374d4886c7c16e1ff0ae381 Mon Sep 17 00:00:00 2001
|
2011-11-20 00:01:55 +00:00
|
|
|
From: Ingo Molnar <mingo@elte.hu>
|
|
|
|
Date: Fri, 3 Jul 2009 08:30:16 -0500
|
2012-06-17 19:52:06 +00:00
|
|
|
Subject: [067/254] input: gameport: Do not disable interrupts on PREEMPT_RT
|
2011-11-20 00:01:55 +00:00
|
|
|
|
|
|
|
Use the _nort() primitives.
|
|
|
|
|
|
|
|
Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
|
|
|
drivers/input/gameport/gameport.c | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
2012-06-17 19:52:06 +00:00
|
|
|
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c
|
|
|
|
index da739d9..18fdafe 100644
|
|
|
|
--- a/drivers/input/gameport/gameport.c
|
|
|
|
+++ b/drivers/input/gameport/gameport.c
|
|
|
|
@@ -87,12 +87,12 @@ static int gameport_measure_speed(struct gameport *gameport)
|
2011-11-20 00:01:55 +00:00
|
|
|
tx = 1 << 30;
|
|
|
|
|
|
|
|
for(i = 0; i < 50; i++) {
|
|
|
|
- local_irq_save(flags);
|
|
|
|
+ local_irq_save_nort(flags);
|
|
|
|
GET_TIME(t1);
|
|
|
|
for (t = 0; t < 50; t++) gameport_read(gameport);
|
|
|
|
GET_TIME(t2);
|
|
|
|
GET_TIME(t3);
|
|
|
|
- local_irq_restore(flags);
|
|
|
|
+ local_irq_restore_nort(flags);
|
|
|
|
udelay(i * 10);
|
|
|
|
if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t;
|
|
|
|
}
|
2012-06-17 19:52:06 +00:00
|
|
|
@@ -111,11 +111,11 @@ static int gameport_measure_speed(struct gameport *gameport)
|
2011-11-20 00:01:55 +00:00
|
|
|
tx = 1 << 30;
|
|
|
|
|
|
|
|
for(i = 0; i < 50; i++) {
|
|
|
|
- local_irq_save(flags);
|
|
|
|
+ local_irq_save_nort(flags);
|
|
|
|
rdtscl(t1);
|
|
|
|
for (t = 0; t < 50; t++) gameport_read(gameport);
|
|
|
|
rdtscl(t2);
|
|
|
|
- local_irq_restore(flags);
|
|
|
|
+ local_irq_restore_nort(flags);
|
|
|
|
udelay(i * 10);
|
|
|
|
if (t2 - t1 < tx) tx = t2 - t1;
|
|
|
|
}
|