public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] sched_getattr/sched_getattr01: Use macro definitions to replace numbers
@ 2015-10-20 12:11 Cui Bixuan
  2015-10-26 15:29 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Cui Bixuan @ 2015-10-20 12:11 UTC (permalink / raw)
  To: ltp

Use 'RUNTIME_VAL','PERIOD_VAL' and 'DEADLINE_VAL' to set attr

Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
---
 .../syscalls/sched_getattr/sched_getattr01.c       |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
index 267b8b1..bf6c5b6 100644
--- a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
+++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
@@ -38,9 +38,9 @@ void *run_deadline(void *data LTP_ATTRIBUTE_UNUSED)
 
 	/* This creates a 10ms/30ms reservation */
 	attr.sched_policy = SCHED_DEADLINE;
-	attr.sched_runtime = 10 * 1000 * 1000;
-	attr.sched_period = 30 * 1000 * 1000;
-	attr.sched_deadline = 30 * 1000 * 1000;
+	attr.sched_runtime = RUNTIME_VAL;
+	attr.sched_period = PERIOD_VAL;
+	attr.sched_deadline = DEADLINE_VAL;
 
 	ret = sched_setattr(0, &attr, flags);
 	if (ret < 0)
-- 
1.6.0.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-28  0:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 12:11 [LTP] [PATCH] sched_getattr/sched_getattr01: Use macro definitions to replace numbers Cui Bixuan
2015-10-26 15:29 ` Cyril Hrubis
2015-10-27  9:32   ` [LTP] [PATCH v2] " Cui Bixuan
2015-10-27 12:48     ` Cyril Hrubis
2015-10-28  0:45       ` Cui Bixuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox