From: GeunSik Lim <leemgs1@gmail.com>
To: williams <williams@redhat.com>
Cc: tglx <tglx@linutronix.de>,
linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: [PATCH 2/3] cyclictest: Fix the same priority method of many threads with -h option.
Date: Sat, 27 Jun 2009 00:38:09 +0900 [thread overview]
Message-ID: <1246030689.2153.32.camel@centos51> (raw)
>From 63c01db3e4b2c3a76f0dd5191f46535137e310c8 Mon Sep 17 00:00:00 2001
From: GeunSik,Lim <leemgs1@gmail.com>
Date: Fri, 26 Jun 2009 23:36:45 +0900
Subject: [PATCH 2/3] cyclictest: Fix priority-- method of many threads with -h.
If we run a many threads with -t option, "priority--" rt priority will assign
per thread in sequence. But, If we use -h option, all threads is same priority.
Adjust the same prirotiy method about below two examples for consistency.
ex) cyclictest -t 5 -p 50 [enter] <-- without -h
ex) cyclictest -t 5 -p 50 -h 100 [enter] <-- with -h
Signed-off-by: GeunSik Lim <geunsik.lim@samsung.com>
---
src/cyclictest/cyclictest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index ad4c421..3505de5 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1150,7 +1150,7 @@ int main(int argc, char **argv)
}
par[i].prio = priority;
- if (priority && !histogram)
+ if (priority)
priority--;
if ( policy == 0) par[i].policy = SCHED_OTHER;
else if ( policy == 1) par[i].policy = SCHED_FIFO;
--
1.6.3.1
-----------------------------------------------
To unsubscribe from this list: send the line "unsubscribe linux-***"
in the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
GeunSik Lim ( Samsung Electronics )
e-Mail :1) geunsik.lim@samsung.com
2) leemgs@gmail.com , leemgs1@gmail.com
HomePage: http://blog.naver.com/invain/
-----------------------------------------------
next reply other threads:[~2009-06-26 15:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 15:38 GeunSik Lim [this message]
2009-06-29 11:05 ` [PATCH 2/3] cyclictest: Fix the same priority method of many threads with -h option Sven-Thorsten Dietrich
2009-06-30 2:15 ` GeunSik Lim
2009-06-30 2:56 ` Sven-Thorsten Dietrich
2009-06-30 7:12 ` GeunSik Lim
2009-06-30 9:30 ` Sven-Thorsten Dietrich
2009-07-01 13:42 ` GeunSik Lim
2009-07-01 23:43 ` Sven-Thorsten Dietrich
2009-07-02 2:56 ` GeunSik Lim
2009-07-02 3:06 ` GeunSik Lim
2009-07-02 20:42 ` Sven-Thorsten Dietrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1246030689.2153.32.camel@centos51 \
--to=leemgs1@gmail.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox