diff mbox series

[04/15] sched_{g, setattr}: Remove kernel >= 3.14 check

Message ID 20240527063346.289771-5-pvorel@suse.cz
State Accepted
Headers show
Series Remove kernel >= 3.x checks | expand

Commit Message

Petr Vorel May 27, 2024, 6:33 a.m. UTC
Since 9e9654cf2 LTP supports kernel >= 4.4.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/sched_getattr/sched_getattr01.c | 3 ---
 testcases/kernel/syscalls/sched_getattr/sched_getattr02.c | 3 ---
 testcases/kernel/syscalls/sched_setattr/sched_setattr01.c | 3 ---
 3 files changed, 9 deletions(-)
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
index c1715d8ac..2e06d1809 100644
--- a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
+++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
@@ -96,9 +96,6 @@  int main(int argc, char **argv)
 
 	tst_require_root();
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	for (lc = 0; TEST_LOOPING(lc); lc++) {
 		pthread_create(&thread, NULL, run_deadline, NULL);
 		pthread_join(thread, NULL);
diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
index 9f4a09f88..5efec2ff5 100644
--- a/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
+++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
@@ -101,8 +101,5 @@  void setup(void)
 {
 	unused_pid = tst_get_unused_pid(setup);
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	TEST_PAUSE;
 }
diff --git a/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c b/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
index d5178e016..13380d177 100644
--- a/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
+++ b/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
@@ -130,8 +130,5 @@  void setup(void)
 
 	tst_require_root();
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	TEST_PAUSE;
 }