public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Poornima Nayak <mpnayak@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net, arun@linux.vnet.ibm.com,
	svaidy@linux.vnet.ibm.com, ego@in.ibm.com
Subject: [LTP] [Patch 2/6] To fix issue in get_sched_values
Date: Mon, 21 Sep 2009 12:54:53 +0530	[thread overview]
Message-ID: <20090921072453.7307.96056.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20090921072444.7307.84825.sendpatchset@localhost.localdomain>

get_sched_values was returning 1 & 0 instead of max sched_mc & max sched_smt.
This patch fixes the issue in the first version of this file.

Signed-off-by: poornima nayak <mpnayak@linux.vnet.ibm.com>

diff -uprN ltp-full-20090831/testcases/kernel/power_management/get_sched_values.c ltp-full-20090831_patched/testcases/kernel/power_management/get_sched_values.c
--- ltp-full-20090831/testcases/kernel/power_management/get_sched_values.c	2009-08-31 10:45:45.000000000 +0530
+++ ltp-full-20090831_patched/testcases/kernel/power_management/get_sched_values.c	2009-09-21 12:27:01.528978103 +0530
@@ -40,14 +40,8 @@ int main(int argc, char **argv)
 	{
 		param = argv[1];
 		if (strcmp(param, "sched_mc")==0)
-			if (get_supp_sched_mc() == 0)
-				return 0;
-			else
-				return 1;
+			return (get_supp_sched_mc());
 		if (strcmp(param, "sched_smt")==0)
-                        if (get_supp_sched_smt() == 0)
-                                return 0;
-                        else
-                                return 1;
+                        return (get_supp_sched_smt());
 	}
 }

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2009-09-21  7:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21  7:24 [LTP] [Patch 1/6] To test consolidation resets when interfaces are set to 0 Poornima Nayak
2009-09-21  7:24 ` Poornima Nayak [this message]
2009-09-21 16:20   ` [LTP] [Patch 2/6] To fix issue in get_sched_values Subrata Modak
2009-09-21  7:25 ` [LTP] [Patch 3/6] To incorporate changes in reusable function Poornima Nayak
2009-09-21 16:20   ` Subrata Modak
2009-09-21  7:25 ` [LTP] [Patch 4/6] To include Additional 5 new test cases Poornima Nayak
2009-09-21 16:20   ` Subrata Modak
2009-09-21  7:25 ` [LTP] [Patch 5/6] Modified library functions based on review comments Poornima Nayak
2009-09-21 16:20   ` Subrata Modak
2009-09-21  7:25 ` [LTP] [Patch 6/6] Modified python functions based on requirement for new testcase Poornima Nayak
2009-09-21 16:20   ` Subrata Modak
2009-09-21 16:20 ` [LTP] [Patch 1/6] To test consolidation resets when interfaces are set to 0 Subrata Modak

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=20090921072453.7307.96056.sendpatchset@localhost.localdomain \
    --to=mpnayak@linux.vnet.ibm.com \
    --cc=arun@linux.vnet.ibm.com \
    --cc=ego@in.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=svaidy@linux.vnet.ibm.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