Commit ccaa8d65 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Thomas Gleixner

rtmutex-tester: Remove BKL tests

The BKL is going away, no need to test it any more.
I left the definitions of the test case numbers
in, so that the other tests do not get renumbered.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1295993854-4971-19-git-send-email-arnd@arndb.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3cf9b85b
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/sysdev.h> #include <linux/sysdev.h>
#include <linux/timer.h> #include <linux/timer.h>
...@@ -27,7 +26,6 @@ struct test_thread_data { ...@@ -27,7 +26,6 @@ struct test_thread_data {
int opcode; int opcode;
int opdata; int opdata;
int mutexes[MAX_RT_TEST_MUTEXES]; int mutexes[MAX_RT_TEST_MUTEXES];
int bkl;
int event; int event;
struct sys_device sysdev; struct sys_device sysdev;
}; };
...@@ -46,8 +44,8 @@ enum test_opcodes { ...@@ -46,8 +44,8 @@ enum test_opcodes {
RTTEST_LOCKINTNOWAIT, /* 6 Lock interruptible no wait in wakeup, data = lockindex */ RTTEST_LOCKINTNOWAIT, /* 6 Lock interruptible no wait in wakeup, data = lockindex */
RTTEST_LOCKCONT, /* 7 Continue locking after the wakeup delay */ RTTEST_LOCKCONT, /* 7 Continue locking after the wakeup delay */
RTTEST_UNLOCK, /* 8 Unlock, data = lockindex */ RTTEST_UNLOCK, /* 8 Unlock, data = lockindex */
RTTEST_LOCKBKL, /* 9 Lock BKL */ RTTEST_LOCKBKL, /* 9 Was: Lock BKL */
RTTEST_UNLOCKBKL, /* 10 Unlock BKL */ RTTEST_UNLOCKBKL, /* 10 Was: Unlock BKL */
RTTEST_SIGNAL, /* 11 Signal other test thread, data = thread id */ RTTEST_SIGNAL, /* 11 Signal other test thread, data = thread id */
RTTEST_RESETEVENT = 98, /* 98 Reset event counter */ RTTEST_RESETEVENT = 98, /* 98 Reset event counter */
RTTEST_RESET = 99, /* 99 Reset all pending operations */ RTTEST_RESET = 99, /* 99 Reset all pending operations */
...@@ -74,13 +72,6 @@ static int handle_op(struct test_thread_data *td, int lockwakeup) ...@@ -74,13 +72,6 @@ static int handle_op(struct test_thread_data *td, int lockwakeup)
td->mutexes[i] = 0; td->mutexes[i] = 0;
} }
} }
if (!lockwakeup && td->bkl == 4) {
#ifdef CONFIG_LOCK_KERNEL
unlock_kernel();
#endif
td->bkl = 0;
}
return 0; return 0;
case RTTEST_RESETEVENT: case RTTEST_RESETEVENT:
...@@ -131,25 +122,6 @@ static int handle_op(struct test_thread_data *td, int lockwakeup) ...@@ -131,25 +122,6 @@ static int handle_op(struct test_thread_data *td, int lockwakeup)
td->mutexes[id] = 0; td->mutexes[id] = 0;
return 0; return 0;
case RTTEST_LOCKBKL:
if (td->bkl)
return 0;
td->bkl = 1;
#ifdef CONFIG_LOCK_KERNEL
lock_kernel();
#endif
td->bkl = 4;
return 0;
case RTTEST_UNLOCKBKL:
if (td->bkl != 4)
break;
#ifdef CONFIG_LOCK_KERNEL
unlock_kernel();
#endif
td->bkl = 0;
return 0;
default: default:
break; break;
} }
...@@ -196,7 +168,6 @@ void schedule_rt_mutex_test(struct rt_mutex *mutex) ...@@ -196,7 +168,6 @@ void schedule_rt_mutex_test(struct rt_mutex *mutex)
td->event = atomic_add_return(1, &rttest_event); td->event = atomic_add_return(1, &rttest_event);
break; break;
case RTTEST_LOCKBKL:
default: default:
break; break;
} }
...@@ -229,8 +200,6 @@ void schedule_rt_mutex_test(struct rt_mutex *mutex) ...@@ -229,8 +200,6 @@ void schedule_rt_mutex_test(struct rt_mutex *mutex)
td->event = atomic_add_return(1, &rttest_event); td->event = atomic_add_return(1, &rttest_event);
return; return;
case RTTEST_LOCKBKL:
return;
default: default:
return; return;
} }
...@@ -380,11 +349,11 @@ static ssize_t sysfs_test_status(struct sys_device *dev, struct sysdev_attribute ...@@ -380,11 +349,11 @@ static ssize_t sysfs_test_status(struct sys_device *dev, struct sysdev_attribute
spin_lock(&rttest_lock); spin_lock(&rttest_lock);
curr += sprintf(curr, curr += sprintf(curr,
"O: %4d, E:%8d, S: 0x%08lx, P: %4d, N: %4d, B: %p, K: %d, M:", "O: %4d, E:%8d, S: 0x%08lx, P: %4d, N: %4d, B: %p, M:",
td->opcode, td->event, tsk->state, td->opcode, td->event, tsk->state,
(MAX_RT_PRIO - 1) - tsk->prio, (MAX_RT_PRIO - 1) - tsk->prio,
(MAX_RT_PRIO - 1) - tsk->normal_prio, (MAX_RT_PRIO - 1) - tsk->normal_prio,
tsk->pi_blocked_on, td->bkl); tsk->pi_blocked_on);
for (i = MAX_RT_TEST_MUTEXES - 1; i >=0 ; i--) for (i = MAX_RT_TEST_MUTEXES - 1; i >=0 ; i--)
curr += sprintf(curr, "%d", td->mutexes[i]); curr += sprintf(curr, "%d", td->mutexes[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment