get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2217617/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2217617,
    "url": "http://patchwork.ozlabs.org/api/patches/2217617/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260330090844.79598-2-pvorel@suse.cz/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260330090844.79598-2-pvorel@suse.cz>",
    "list_archive_url": null,
    "date": "2026-03-30T09:08:42",
    "name": "[v2,1/2] Remove now unsupported power management tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "78ca0a3b735ea0898aca33dad1445db4f6341f32",
    "submitter": {
        "id": 70792,
        "url": "http://patchwork.ozlabs.org/api/people/70792/?format=api",
        "name": "Petr Vorel",
        "email": "pvorel@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260330090844.79598-2-pvorel@suse.cz/mbox/",
    "series": [
        {
            "id": 497983,
            "url": "http://patchwork.ozlabs.org/api/series/497983/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=497983",
            "date": "2026-03-30T09:08:41",
            "name": "power_management: remove unsupported tests",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497983/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217617/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217617/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=DtNf/N82;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=IXmFVw6b;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=wCvYFhse;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=pMqNhA4S;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkln31Cmpz1yG8\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 20:09:27 +1100 (AEDT)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 2257F3E4862\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 11:09:25 +0200 (CEST)",
            "from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id F119F3E4F12\n for <ltp@lists.linux.it>; Mon, 30 Mar 2026 11:09:14 +0200 (CEST)",
            "from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 7A55E1A006B9\n for <ltp@lists.linux.it>; Mon, 30 Mar 2026 11:09:12 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id DEA525BE82;\n Mon, 30 Mar 2026 09:09:01 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5A20E4A0B0;\n Mon, 30 Mar 2026 09:09:01 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id qBmOFK09ymnvDAAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Mon, 30 Mar 2026 09:09:01 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1774861743;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=i5PaY2hrfAz2CGiz9vtoAmCmoW8nbolKAZDz9HmqAwY=;\n b=DtNf/N827yyn4or+PixC0R2pYclA5BklQIqF5adsgeZTGnDOd2xpEeYzYWxki5//L2FMiI\n kzD6LCXzMuTxN2GGhoWIo9JH0hTA8pBSuFbiysMUGkzw2SkgOJtDNtEGMAHoDip0CBIB9h\n DTqZlSIuRNC7RkLwte5o/nXffB34gpQ=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1774861743;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=i5PaY2hrfAz2CGiz9vtoAmCmoW8nbolKAZDz9HmqAwY=;\n b=IXmFVw6bENdXvtAmtzas4ITiHv+jNXQCly7frU7ddCZMG/C6DEyRj9XcSVTmrhX9b9wC+L\n y3TwwqXgut4CcFCQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1774861741;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=i5PaY2hrfAz2CGiz9vtoAmCmoW8nbolKAZDz9HmqAwY=;\n b=wCvYFhseIuTeD47wd613GVRb4cwDNUgBg8O7cvn15dsaqBoRNc1CZKYgRL1mpmxNBw45y3\n +cPE+PLHIBIanV+vACF5nSrCW1ryzuliNOw4N3QM/RSqtJheTZk/6tQlRYOCBWZo/UCgpL\n RBy8JEX/hFqwBQ/TPpnOO5HBsBZ+548=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1774861741;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=i5PaY2hrfAz2CGiz9vtoAmCmoW8nbolKAZDz9HmqAwY=;\n b=pMqNhA4SBmeue4eBhm1CV9bWosEXSLxqvC3yFGnu6Ffno4uAgyGBgZiJQN2oWmuyOiOfqN\n p5Qeohs9zpUd5VBA=="
        ],
        "From": "Petr Vorel <pvorel@suse.cz>",
        "To": "ltp@lists.linux.it",
        "Date": "Mon, 30 Mar 2026 11:08:42 +0200",
        "Message-ID": "<20260330090844.79598-2-pvorel@suse.cz>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260330090844.79598-1-pvorel@suse.cz>",
        "References": "<20260330090844.79598-1-pvorel@suse.cz>",
        "MIME-Version": "1.0",
        "X-Spam-Score": "-2.80",
        "X-Spam-Level": [
            "",
            "**"
        ],
        "X-Spamd-Result": "default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[];\n R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000];\n MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+];\n RCPT_COUNT_TWELVE(0.00)[15];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:mid,suse.cz:email,pm_cpu_consolidation.py:url,runpwtests_exclusive03.sh:url,check_cpufreq_sysfs_files.sh:url,pm_include.sh:url,change_govr.sh:url,runpwtests_exclusive05.sh:url,runpwtests_exclusive01.sh:url,runpwtests_exclusive02.sh:url,runpwtests03.sh:url,infradead.org:email,imap1.dmz-prg2.suse.org:helo,runpwtests_exclusive04.sh:url,change_freq.sh:url,test.sh:url,pm_ilb_test.py:url,runpwtests04.sh:url,runpwtests02.sh:url,runpwtests.sh:url,runpwtests06.sh:url,runpwtests01.sh:url,pm_sched_domain.py:url,runpwtests05.sh:url];\n RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[];\n RCVD_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]",
        "X-Spam-Status": "No, score=2.4 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TVD_SUBJ_WIPE_DEBT\n shortcircuit=no autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-3.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-3.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH v2 1/2] Remove now unsupported power management tests",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Cc": "\"Rafael J . Wysocki\" <rafael@kernel.org>, linux-pm@vger.kernel.org,\n Daniel Lezcano <daniel.lezcano@linaro.org>, tomasz.ossowski@intel.com,\n helena.anna.dubel@intel.com, Zhang Rui <rui.zhang@intel.com>,\n Lukasz Luba <lukasz.luba@arm.com>, automated-testing@lists.yoctoproject.org",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "From: Cyril Hrubis <chrubis@suse.cz>\n\nThe sched_mc_power_savings and sched_smt_power_savings sysfs knobs\nwere removed from kernel in:\n\ncommit 8e7fbcbc22c12414bcc9dfdd683637f58fb32759\nAuthor: Peter Zijlstra <peterz@infradead.org>\nDate:   Mon Jan 9 11:28:35 2012 +0100\n\n    sched: Remove stale power aware scheduling remnants and dysfunctional knobs\n\nThat went into kernel 3.5 and the minimal kernel version LTP currently\nsupports is 3.10.\n\nThis has been discussed in:\n\nhttps://github.com/linux-test-project/ltp/pull/1016\n\nSigned-off-by: Cyril Hrubis <chrubis@suse.cz>\nSigned-off-by: Petr Vorel <pvorel@suse.cz>\n---\n runtest/power_management_tests                |   3 -\n runtest/power_management_tests_exclusive      |   6 -\n testcases/kernel/power_management/.gitignore  |   1 -\n testcases/kernel/power_management/README      |  29 ----\n .../power_management/pm_cpu_consolidation.py  | 143 ------------------\n .../power_management/pm_get_sched_values.c    |  36 -----\n .../kernel/power_management/runpwtests01.sh   |  71 ---------\n .../kernel/power_management/runpwtests02.sh   |  68 ---------\n .../kernel/power_management/runpwtests05.sh   |  76 ----------\n .../runpwtests_exclusive01.sh                 |  97 ------------\n .../runpwtests_exclusive02.sh                 |  68 ---------\n .../runpwtests_exclusive03.sh                 |  95 ------------\n .../runpwtests_exclusive04.sh                 |  58 -------\n .../runpwtests_exclusive05.sh                 |  97 ------------\n 14 files changed, 848 deletions(-)\n delete mode 100644 runtest/power_management_tests_exclusive\n delete mode 100644 testcases/kernel/power_management/.gitignore\n delete mode 100755 testcases/kernel/power_management/pm_cpu_consolidation.py\n delete mode 100644 testcases/kernel/power_management/pm_get_sched_values.c\n delete mode 100755 testcases/kernel/power_management/runpwtests01.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests02.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests05.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests_exclusive01.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests_exclusive02.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests_exclusive03.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests_exclusive04.sh\n delete mode 100755 testcases/kernel/power_management/runpwtests_exclusive05.sh",
    "diff": "diff --git a/runtest/power_management_tests b/runtest/power_management_tests\nindex 884e615cd8..b670da6ecf 100644\n--- a/runtest/power_management_tests\n+++ b/runtest/power_management_tests\n@@ -1,7 +1,4 @@\n #POWER_MANAGEMENT\n-runpwtests01 runpwtests01.sh\n-runpwtests02 runpwtests02.sh\n runpwtests03 runpwtests03.sh\n runpwtests04 runpwtests04.sh\n-#runpwtests05 runpwtests05.sh\n runpwtests06 runpwtests06.sh\ndiff --git a/runtest/power_management_tests_exclusive b/runtest/power_management_tests_exclusive\ndeleted file mode 100644\nindex 0eb0122476..0000000000\n--- a/runtest/power_management_tests_exclusive\n+++ /dev/null\n@@ -1,6 +0,0 @@\n-#POWER_MANAGEMENT exclusive\n-runpwtests_exclusive01 runpwtests_exclusive01.sh\n-runpwtests_exclusive02 runpwtests_exclusive02.sh\n-runpwtests_exclusive03 runpwtests_exclusive03.sh\n-runpwtests_exclusive04 runpwtests_exclusive04.sh\n-runpwtests_exclusive05 runpwtests_exclusive05.sh\ndiff --git a/testcases/kernel/power_management/.gitignore b/testcases/kernel/power_management/.gitignore\ndeleted file mode 100644\nindex 0c2a3ed4bd..0000000000\n--- a/testcases/kernel/power_management/.gitignore\n+++ /dev/null\n@@ -1 +0,0 @@\n-pm_get_sched_values\ndiff --git a/testcases/kernel/power_management/README b/testcases/kernel/power_management/README\nindex b8d6c316e8..1b82782d85 100644\n--- a/testcases/kernel/power_management/README\n+++ b/testcases/kernel/power_management/README\n@@ -38,13 +38,6 @@ CONFIG_CPU_IDLE\n CONFIG_CPU_IDLE_GOV_LADDER\n CONFIG_CPU_IDLE_GOV_MENU\n \n-for SCHED_MC tests:\n-\n-CONFIG_SCHED_MC\n-\n-The power management test automation suite helps run the power management functionality\n-(e.g: cpu frequency, cpu idle etc..) tests and report results.\n-\n Test Scripts for CPU FREQUENCY:\n change_freq.sh\n change_govr.sh\n@@ -53,9 +46,6 @@ check_cpufreq_sysfs_files.sh\n Test Scripts for CPU IDLE:\n will be added soon\n \n-Test Scripts for SCHED_MC:\n-test_sched_mc.sh\n-\n Common functionality:\n pm_include.sh\n check_kv_arch.c\n@@ -66,22 +56,3 @@ To run your tests you can execute the runpwtests.sh\n To run the tests individually :\n \n P.S. As of now the supporting architecture(s) are x86,x86_64\n-\n-Support of system:\n------------------\n-If you see some thing like following,\n-\n-Power Management    1  FAIL  :  Required kernel configuration for SCHED_MC NOT set\n-or\n-Power Management    1  FAIL  :  Required kernel configuration for CPU_FREQ NOT set\n-\n-Then either configuration is not set or the system won't support.\n-\n-For CPU consolidation verification ebizzy is included in utils directory of LTP.\n-To run cpu consolidation test user has to provide -w <workload> -l <sched_mc_level>.\n-Refer to README in LTPROOT/utils/benchmark/ebizzy-0.2 directory for details of ebizzy.\n-\n-To test CPU consolidation for sched_mc 2 kernbench has to run. Kernbench needs linux kernel source as input in /root directory . For example download from http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2. If Linux kernel source not found kernbench wiil  not execute.\n-CPU consolidation testcases will not execute if number of CPU's in package is less then 2. If system is hyper threaded but number of CPU is 1 only sched_smt testcases will be excuted. For better coverage of testcases select a system which is at least quad core and then hyper threaded so that you will observe 8 CPU's in each package.\n-\n-Timer migration interface test will execute on kernel versions 2.6.31 and above. Timer migration functionality verification testcases will be executed only on suitable architecture like quad core or the number of CPU's in each package should be at least 4 and above\ndiff --git a/testcases/kernel/power_management/pm_cpu_consolidation.py b/testcases/kernel/power_management/pm_cpu_consolidation.py\ndeleted file mode 100755\nindex a01db004cb..0000000000\n--- a/testcases/kernel/power_management/pm_cpu_consolidation.py\n+++ /dev/null\n@@ -1,143 +0,0 @@\n-#!/usr/bin/env python3\n-''' This Python script interprets various sched stats values.\n-    Validates cpu consolidation for given sched_mc_power_saving value\n-'''\n-\n-import os\n-import sys\n-import time\n-from optparse import OptionParser\n-from pm_sched_mc import *\n-\n-__author__ = \"Poornima Nayak <mpnayak@linux.vnet.ibm.com>\"\n-\n-class Usage(Exception):\n-    def __init__(self, msg):\n-        self.msg = msg\n-\n-def main(argv=None):\n-    if argv is None:\n-        argv = sys.argv\n-\n-    usage = \"-w\"\n-    parser = OptionParser(usage)\n-    parser.add_option(\"-v\", \"--variation_test\", dest=\"vary_mc_smt\",\n-        default=False, action=\"store_true\", help=\"Vary sched_mc & sched_smt. \\\n-            -c and -t inputs are initial value of sched_mc & sched_smt\")\n-    parser.add_option(\"-c\", \"--mc_value\", dest=\"mc_value\",\n-        default=0, help=\"Sched mc power saving value 0/1/2\")\n-    parser.add_option(\"-t\", \"--smt_value\", dest=\"smt_value\",\n-        default=0, help=\"Sched smt power saving value 0/1/2\")\n-    parser.add_option(\"-w\", \"--workload\", dest=\"work_ld\",\n-        default=\"ebizzy\", help=\"Workload can be ebizzy/kernbench\")\n-    parser.add_option(\"-s\", \"--stress\", dest=\"stress\",\n-        default=\"partial\", help=\"Load on system is full/partial [i.e 50%]/thread\")\n-    parser.add_option(\"-p\", \"--performance\", dest=\"perf_test\",\n-        default=False, action=\"store_true\", help=\"Enable performance test\")\n-    (options, args) = parser.parse_args()\n-\n-    try:\n-        count_num_cpu()\n-        count_num_sockets()\n-        if is_hyper_threaded():\n-            generate_sibling_list()\n-\n-        # User should set option -v to test cpu consolidation\n-        # resets when sched_mc &(/) sched_smt is disabled when\n-        # workload is already running in the system\n-\n-        if options.vary_mc_smt:\n-\n-            # Since same code is used for testing package consolidation and core\n-            # consolidation is_multi_socket & is_hyper_threaded check is done\n-            if is_multi_socket() and is_multi_core() and options.mc_value:\n-                set_sched_mc_power(options.mc_value)\n-\n-            if is_hyper_threaded() and options.smt_value:\n-                set_sched_smt_power(options.smt_value)\n-\n-            #Generate arguments for trigger workload, run workload in background\n-            map_cpuid_pkgid()\n-            background=\"yes\"\n-            duration=360\n-            pinned=\"no\"\n-            if int(options.mc_value) < 2 and int(options.smt_value) < 2:\n-                trigger_ebizzy (options.smt_value, \"partial\", duration, background, pinned)\n-                work_ld=\"ebizzy\"\n-                #Wait for 120 seconds and then validate cpu consolidation works\n-                #When sched_mc & sched_smt is set\n-                import time\n-                time.sleep(120)\n-            else:\n-                #Wait for 120 seconds and then validate cpu consolidation works\n-                #When sched_mc & sched_smt is set\n-                trigger_kernbench (options.smt_value, \"partial\", background, pinned, \"no\")\n-                work_ld=\"kernbench\"\n-                import time\n-                time.sleep(300)\n-\n-            generate_report()\n-            status = validate_cpu_consolidation(\"partial\", work_ld, options.mc_value, options.smt_value)\n-            if status == 0:\n-                print(\"INFO: Consolidation worked sched_smt &(/) sched_mc is set\")\n-                #Disable sched_smt & sched_mc interface values\n-                if options.vary_mc_smt and options.mc_value > 0:\n-                    set_sched_mc_power(0)\n-                    mc_value = options.mc_value\n-                else:\n-                    mc_value = 0\n-                if options.vary_mc_smt and options.smt_value > 0 and is_hyper_threaded():\n-                    set_sched_smt_power(0)\n-                    smt_value = options.smt_value\n-                else:\n-                    smt_value = 0\n-\n-                if work_ld == \"kernbench\":\n-                    time.sleep(240)\n-                else:\n-                    time.sleep(120)\n-\n-                generate_report()\n-                status = validate_cpu_consolidation(\"partial\", work_ld, mc_value, smt_value)\n-                if background == \"yes\":\n-                    stop_wkld(work_ld)\n-                #CPU consolidation should fail as sched_mc &(/) sched_smt is disabled\n-                if status == 1:\n-                    return(0)\n-                else:\n-                    return(1)\n-            else:\n-                print(\"INFO: CPU consolidation failed when sched_mc &(/) \\\n-sched_smt was enabled. This is pre-requisite to proceed\")\n-                return(status)\n-        else:\n-            #The else part of the code validates behaviour of sched_mc\n-            # and sched_smt set to 0, 1 & 2\n-            if is_multi_socket():\n-                set_sched_mc_power(options.mc_value)\n-            if is_hyper_threaded():\n-                set_sched_smt_power(options.smt_value)\n-            map_cpuid_pkgid()\n-            print(\"INFO: Created table mapping cpu to package\")\n-            background=\"no\"\n-            duration=60\n-            pinned =\"no\"\n-\n-            if options.perf_test:\n-                perf_test=\"yes\"\n-            else:\n-                perf_test=\"no\"\n-\n-            trigger_workld( options.smt_value, options.work_ld, options.stress, duration, background, pinned, perf_test)\n-            generate_report()\n-            status = validate_cpu_consolidation(options.stress, options.work_ld,options.mc_value, options.smt_value)\n-            reset_schedmc()\n-            if is_hyper_threaded():\n-                reset_schedsmt()\n-            return(status)\n-    except Exception as details:\n-        print(\"INFO: CPU consolidation failed\", details)\n-        return(1)\n-\n-if __name__ == \"__main__\":\n-    sys.exit(main())\ndiff --git a/testcases/kernel/power_management/pm_get_sched_values.c b/testcases/kernel/power_management/pm_get_sched_values.c\ndeleted file mode 100644\nindex e75c5852e5..0000000000\n--- a/testcases/kernel/power_management/pm_get_sched_values.c\n+++ /dev/null\n@@ -1,36 +0,0 @@\n-/************************************************************************\n-* Copyright (c) International Business Machines Corp., 2008\n-* This program is free software; you can redistribute it and/or modify\n-* it under the terms of the GNU General Public License as published by\n-* the Free Software Foundation; either version 2 of the License, or\n-* (at your option) any later version.\n-*\n-* This program is distributed in the hope that it will be useful,\n-* but WITHOUT ANY WARRANTY; without even the implied warranty of\n-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See\n-* the GNU General Public License for more details.\n-* You should have received a copy of the GNU General Public License\n-* along with this program; if not, write to the Free Software\n-* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-*\n-***************************************************************************/\n-#include <stdio.h>\n-#include \"test.h\"\n-\n-const char *TCID = \"pm_get_sched_values\";\n-\n-int main(int argc, char **argv)\n-{\n-\tchar *param;\n-\tif (argc == 0)\n-\t\treturn 1;\n-\telse {\n-\t\tparam = argv[1];\n-\t\tif (strcmp(param, \"sched_mc\") == 0)\n-\t\t\treturn 2;\n-\t\tif (strcmp(param, \"sched_smt\") == 0)\n-\t\t\treturn 2;\n-\t}\n-\n-\treturn 1;\n-}\ndiff --git a/testcases/kernel/power_management/runpwtests01.sh b/testcases/kernel/power_management/runpwtests01.sh\ndeleted file mode 100755\nindex 2caf9eab51..0000000000\n--- a/testcases/kernel/power_management/runpwtests01.sh\n+++ /dev/null\n@@ -1,71 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management01\"\n-export TST_TOTAL=1\n-\n-. test.sh\n-. pm_include.sh\n-\n-test_sched_mc() {\n-\tget_kernel_version\n-\tget_valid_input $kernel_version\n-\n-\tinvalid_input=\"3 4 5 6 7 8 a abcefg x1999 xffff -1 -00000\n-\t2000000000000000000000000000000000000000000000000000000000000000000\n-\tox324 -0xfffffffffffffffffffff\"\n-\ttest_file=\"/sys/devices/system/cpu/sched_mc_power_savings\"\n-\tif [ ! -f ${test_file} ] ; then\n-\t\ttst_brkm TBROK \"MISSING_FILE: missing file ${test_file}\"\n-\tfi\n-\n-\tRC=0\n-\techo \"${0}: ---Valid test cases---\"\n-\tcheck_input \"${valid_input}\" valid $test_file\n-\tRC=$?\n-\techo \"${0}: ---Invalid test cases---\"\n-\tcheck_input \"${invalid_input}\" invalid $test_file\n-\tRC=$(( RC | $? ))\n-\treturn $RC\n-}\n-\n-# Checking test environment\n-check_arch\n-\n-# Checking sched_mc sysfs interface\n-multi_socket=$(is_multi_socket)\n-multi_core=$(is_multi_core)\n-if [ ! -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then\n-\ttst_brkm TCONF \"Required kernel configuration for SCHED_MC\" \\\n-\t\t\"NOT set\"\n-else\n-\tif [ $multi_socket -ne 0 -a $multi_core -ne 0 ] ; then\n-\t\ttst_brkm TCONF \"sched_mc_power_savings interface in system\" \\\n-\t\t\t\"which is not a multi socket &(/) multi core\"\n-\tfi\n-fi\n-\n-if test_sched_mc ; then\n-\ttst_resm TPASS \"SCHED_MC sysfs tests\"\n-else\n-\ttst_resm TFAIL \"SCHED_MC sysfs tests\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests02.sh b/testcases/kernel/power_management/runpwtests02.sh\ndeleted file mode 100755\nindex 805befb033..0000000000\n--- a/testcases/kernel/power_management/runpwtests02.sh\n+++ /dev/null\n@@ -1,68 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management02\"\n-export TST_TOTAL=1\n-\n-. test.sh\n-. pm_include.sh\n-\n-test_sched_smt() {\n-\tget_kernel_version\n-\tget_valid_input $kernel_version\n-\n-\tinvalid_input=\"3 4 5 6 7 8 a abcefg x1999 xffff -1 -00000\n-\t2000000000000000000000000000000000000000000000000000000000000000000000\n-\tox324 -0xfffffffffffffffffffff\"\n-\ttest_file=\"/sys/devices/system/cpu/sched_smt_power_savings\"\n-\tif [ ! -f ${test_file} ] ; then\n-\t\ttst_brkm TBROK \"MISSING_FILE: missing file ${test_file}\"\n-\tfi\n-\n-\techo \"${0}: ---Valid test cases---\"\n-\tcheck_input \"${valid_input}\" valid $test_file\n-\tRC=$?\n-\techo \"${0}: ---Invalid test cases---\"\n-\tcheck_input \"${invalid_input}\" invalid $test_file\n-\tRC=$(( RC | $? ))\n-\treturn $RC\n-}\n-\n-# Checking test environment\n-check_arch\n-\n-# Check sched_smt_power_savings interface on HT machines\n-hyper_threaded=$(is_hyper_threaded)\n-if [ ! -f /sys/devices/system/cpu/sched_smt_power_savings ] ; then\n-\ttst_brkm TCONF \"Required kernel configuration for SCHED_SMT NOT set\"\n-else\n-\tif [ $hyper_threaded -ne 0 ]; then\n-\t\ttst_brkm TCONF \"sched_smt_power_saving interface in system\" \\\n-\t\t\t\"not hyper-threaded\"\n-\tfi\n-fi\n-\n-if test_sched_smt ; then\n-\ttst_resm TPASS \"SCHED_SMT sysfs test\"\n-else\n-\ttst_resm TFAIL \"SCHED_SMT sysfs test\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests05.sh b/testcases/kernel/power_management/runpwtests05.sh\ndeleted file mode 100755\nindex 03b6752bf3..0000000000\n--- a/testcases/kernel/power_management/runpwtests05.sh\n+++ /dev/null\n@@ -1,76 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management05\"\n-export TST_TOTAL=2\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-max_sched_mc=2\n-max_sched_smt=2\n-\n-tst_require_cmds python3\n-\n-if ! grep sched_debug -qw /proc/cmdline ; then\n-\ttst_brkm TCONF \"Kernel cmdline parameter 'sched_debug' needed,\" \\\n-\t\t\"CPU Consolidation test cannot run\"\n-fi\n-\n-hyper_threaded=$(is_hyper_threaded)\n-if [ ! -f /sys/devices/system/cpu/sched_mc_power_savings \\\n-\t-o $hyper_threaded -ne 0 ] ; then\n-\ttst_brkm TCONF \"Required kernel configuration for SCHED_MC\" \\\n-\t\t\"NOT set, or sched_mc_power_savings interface in system\" \\\n-\t\t\"which is not hyper-threaded\"\n-fi\n-\n-# sched_domain test\n-echo \"max sched mc $max_sched_mc\"\n-RC=0\n-for sched_mc in `seq 0 $max_sched_mc`; do\n-\tpm_sched_domain.py -c $sched_mc; ret=$?\n-\tanalyze_sched_domain_result $sched_mc $ret; RC=$?\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"Sched_domain test for sched_mc\"\n-else\n-\ttst_resm TFAIL \"Sched_domain test for sched_mc\"\n-fi\n-\n-# Testcase to validate sched_domain tree\n-RC=0\n-for sched_mc in `seq 0 $max_sched_mc`; do\n-\tpm_get_sched_values sched_smt; max_sched_smt=$?\n-\tfor sched_smt in `seq 0 $max_sched_smt`; do\n-\t\tpm_sched_domain.py -c $sched_mc -t $sched_smt; ret=$?\n-\t\tanalyze_sched_domain_result $sched_mc $ret $sched_smt; RC=$?\n-\tdone\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"Sched_domain test for sched_mc & sched_smt\"\n-else\n-\ttst_resm TFAIL \"Sched_domain test for sched_mc & sched_smt\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests_exclusive01.sh b/testcases/kernel/power_management/runpwtests_exclusive01.sh\ndeleted file mode 100755\nindex f309d7c196..0000000000\n--- a/testcases/kernel/power_management/runpwtests_exclusive01.sh\n+++ /dev/null\n@@ -1,97 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management_exclusive01\"\n-export TST_TOTAL=2\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-max_sched_mc=2\n-max_sched_smt=2\n-\n-tst_require_cmds python3\n-\n-hyper_threaded=$(is_hyper_threaded)\n-multi_socket=$(is_multi_socket)\n-multi_core=$(is_multi_core)\n-if [ $multi_socket -ne 0 -o $multi_core -ne 0 -o \\\n-\t$hyper_threaded -ne 0 ]; then\n-\ttst_brkm TCONF \"System is not a multi socket & multi core\" \\\n-\t\t\"& hyper-threaded\"\n-fi\n-\n-# Test CPU consolidation\n-RC=0\n-for sched_mc in `seq 0  $max_sched_mc`; do\n-\tsched_mc_pass_cnt=0\n-\tif [ $sched_mc -eq 2 ]; then\n-\t\twork_load=\"kernbench\"\n-\telse\n-\t\twork_load=\"ebizzy\"\n-\tfi\n-\tfor repeat_test in `seq 1  10`; do\n-\t\t#Testcase to validate CPU consolidation for sched_mc\n-\t\tif pm_cpu_consolidation.py -c $sched_mc -w $work_load ; then\n-\t\t: $(( sched_mc_pass_cnt += 1 ))\n-\t\tfi\n-\tdone\n-\tanalyze_package_consolidation_result $sched_mc \\\n-\t\t$sched_mc_pass_cnt; RC=$?\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"CPU consolidation test for sched_mc\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test for sched_mc\"\n-fi\n-\n-RC=0\n-for sched_mc in `seq 0  $max_sched_mc`; do\n-\tif [ $sched_mc -eq 2 ]; then\n-\t\twork_load=\"kernbench\"\n-\telse\n-\t\twork_load=\"ebizzy\"\n-\tfi\n-\tfor sched_smt in `seq 0 $max_sched_smt`; do\n-\t\tsched_mc_smt_pass_cnt=0\n-\t\tfor repeat_test in `seq 1  10`; do\n-\t\t\t# Testcase to validate CPU consolidation for\n-\t\t\t# for sched_mc & sched_smt with stress=50%\n-\t\t\tif pm_cpu_consolidation.py -c $sched_mc -t $sched_smt \\\n-\t\t\t\t-w $work_load ; then\n-\t\t\t\t: $(( sched_mc_smt_pass_cnt += 1 ))\n-\t\t\tfi\n-\t\tdone\n-\t\tanalyze_package_consolidation_result $sched_mc \\\n-\t\t\t$sched_mc_smt_pass_cnt $sched_smt; RC=$?\n-\tdone\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"CPU consolidation test for sched_mc &\" \\\n-\t\t\"sched_smt with stress=50%\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test for sched_mc &\" \\\n-\t\t\"sched_smt with stress=50%\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests_exclusive02.sh b/testcases/kernel/power_management/runpwtests_exclusive02.sh\ndeleted file mode 100755\nindex 547e88feaf..0000000000\n--- a/testcases/kernel/power_management/runpwtests_exclusive02.sh\n+++ /dev/null\n@@ -1,68 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management_exclusive02\"\n-export TST_TOTAL=1\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-max_sched_smt=2\n-\n-tst_require_cmds python3\n-\n-hyper_threaded=$(is_hyper_threaded)\n-multi_socket=$(is_multi_socket)\n-multi_core=$(is_multi_core)\n-if [ $hyper_threaded -ne 0 -o $multi_socket -ne 0 \\\n-\t-o $multi_core -eq 0 ]; then\n-\ttst_brkm TCONF \"System is a multi core but not multi\" \\\n-\t\t\"socket & hyper-threaded\"\n-fi\n-\n-#Testcase to validate consolidation at core level\n-RC=0\n-for sched_smt in `seq 0 $max_sched_smt`; do\n-\tif [ $sched_smt -eq 2 ]; then\n-\t\twork_load=\"kernbench\"\n-\telse\n-\t\twork_load=\"ebizzy\"\n-\tfi\n-\tsched_smt_pass_cnt=0\n-\tstress=\"thread\"\n-\tfor repeat_test in `seq 1  10`; do\n-\t\tif pm_cpu_consolidation.py -t $sched_smt -w $work_load \\\n-\t\t\t-s $stress; then\n-\t\t\t: $(( sched_smt_pass_cnt += 1 ))\n-\t\tfi\n-\tdone\n-\tanalyze_core_consolidation_result $sched_smt \\\n-\t\t$sched_smt_pass_cnt; RC=$?\n-done\n-if [ $RC -eq 0 ]; then\n-    tst_resm TPASS \"Consolidation test at core level for sched_smt\"\n-else\n-    tst_resm TFAIL \"Consolidation test at core level for sched_smt\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests_exclusive03.sh b/testcases/kernel/power_management/runpwtests_exclusive03.sh\ndeleted file mode 100755\nindex 67c7243e8f..0000000000\n--- a/testcases/kernel/power_management/runpwtests_exclusive03.sh\n+++ /dev/null\n@@ -1,95 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management_exclusive03\"\n-export TST_TOTAL=2\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-max_sched_mc=2\n-max_sched_smt=2\n-\n-tst_require_cmds python3\n-\n-hyper_threaded=$(is_hyper_threaded)\n-multi_socket=$(is_multi_socket)\n-multi_core=$(is_multi_core)\n-if [ $multi_socket -ne 0 -o $multi_core -ne 0 -o \\\n-\t$hyper_threaded -ne 0 ]; then\n-\ttst_brkm TCONF \"System is not a multi socket & multi core\" \\\n-\t\t\"& hyper-threaded\"\n-fi\n-\n-# Verify threads consolidation stops when sched_mc &(/) sched_smt\n-# is disabled.\n-# Vary sched_mc from 1/2 to 0 when workload is running and\n-# ensure that tasks do not consolidate to single package when\n-# sched_mc is set to 0.\n-RC=0\n-for sched_mc in `seq 1  $max_sched_mc`; do\n-\tif pm_cpu_consolidation.py -v -c $sched_mc; then\n-\t\techo \"Test PASS: CPU consolidation test by varying\" \\\n-\t\t\t\"sched_mc $sched_mc to 0\"\n-\telse\n-\t\tRC=1\n-\t\techo \"Test FAIL: CPU consolidation test by varying\" \\\n-\t\t\t\"sched_mc $sched_mc to 0\"\n-\tfi\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"CPU consolidation test by varying sched_mc\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test by varying sched_mc\"\n-fi\n-\n-# Vary sched_mc & sched_smt from 1 to 0 & 2 to 0 when workload\n-# is running and ensure that tasks do not consolidate to single\n-# package when sched_mc is set to 0.\n-RC=0\n-for sched_mc in `seq 1  $max_sched_mc`; do\n-\tfor sched_smt in `seq 1  $max_sched_smt`; do\n-\t\tif [ $sched_smt -eq $sched_mc ]; then\n-\t\t\tif pm_cpu_consolidation.py -v -c $sched_mc \\\n-\t\t\t\t-t $sched_smt; then\n-\t\t\t\techo \"Test PASS: CPU consolidation test by\" \\\n-\t\t\t\t\t\"varying sched_mc & sched_smt from\" \\\n-\t\t\t\t\t\"$sched_mc to 0\"\n-\t\t\telse\n-\t\t\t\tRC=1\n-\t\t\t\techo \"Test FAIL: CPU consolidation test by\" \\\n-\t\t\t\t\t\"varying sched_mc & sched_smt from\" \\\n-\t\t\t\t\t\"$sched_mc to 0\"\n-\t\t\tfi\n-\t\tfi\n-\tdone\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"CPU consolidation test by varying\" \\\n-\t\t\"sched_mc & sched_smt\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test by varying\" \\\n-\t\t\"sched_mc & sched_smt\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests_exclusive04.sh b/testcases/kernel/power_management/runpwtests_exclusive04.sh\ndeleted file mode 100755\nindex 46985b3be5..0000000000\n--- a/testcases/kernel/power_management/runpwtests_exclusive04.sh\n+++ /dev/null\n@@ -1,58 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management_exclusive04\"\n-export TST_TOTAL=2\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-tst_require_cmds python3\n-\n-hyper_threaded=$(is_hyper_threaded)\n-multi_socket=$(is_multi_socket)\n-if [ $hyper_threaded -ne 0 -o $multi_socket -ne 0 ]; then\n-\ttst_brkm TCONF \"System is not a multi socket & hyper-threaded\"\n-fi\n-\n-# Verify threads consolidation stops when sched_smt is\n-# disabled in HT systems.\n-# Vary only sched_smt from 1 to 0 when workload is running\n-# and ensure that tasks do not consolidate to single core\n-# when sched_smt is set to 0.\n-if pm_cpu_consolidation.py -v -t 1; then\n-\ttst_resm TPASS \"CPU consolidation test by varying sched_smt from 1 to 0\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test by varying sched_smt from 1 to 0\"\n-fi\n-\n-# Vary only sched_smt from 2 to 0 when workload is running\n-# and ensure that tasks do not consolidate to single core\n-# when sched_smt is set to 0.\n-if pm_cpu_consolidation.py -v -t 2; then\n-\ttst_resm TPASS \"CPU consolidation test by varying sched_smt from 2 to 0\"\n-else\n-\ttst_resm TFAIL \"CPU consolidation test by varying sched_smt from 2 to 0\"\n-fi\n-\n-tst_exit\ndiff --git a/testcases/kernel/power_management/runpwtests_exclusive05.sh b/testcases/kernel/power_management/runpwtests_exclusive05.sh\ndeleted file mode 100755\nindex 38450d1fdf..0000000000\n--- a/testcases/kernel/power_management/runpwtests_exclusive05.sh\n+++ /dev/null\n@@ -1,97 +0,0 @@\n-#! /bin/sh\n-#\n-# Copyright (c) International Business Machines  Corp., 2001\n-# Author: Nageswara R Sastry <nasastry@in.ibm.com>\n-#\n-# This program is free software;  you can redistribute it and#or modify\n-# it under the terms of the GNU General Public License as published by\n-# the Free Software Foundation; either version 2 of the License, or\n-# (at your option) any later version.\n-#\n-# This program is distributed in the hope that it will be useful, but\n-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n-# for more details.\n-#\n-# You should have received a copy of the GNU General Public License\n-# along with this program;  if not, write to the Free Software Foundation,\n-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n-#\n-\n-export TCID=\"Power_Management_exclusive05\"\n-export TST_TOTAL=2\n-\n-. test.sh\n-. pm_include.sh\n-\n-# Checking test environment\n-check_arch\n-\n-max_sched_mc=2\n-max_sched_smt=2\n-\n-tst_require_cmds python3\n-\n-hyper_threaded=$(is_hyper_threaded)\n-multi_socket=$(is_multi_socket)\n-multi_core=$(is_multi_core)\n-if [ $multi_socket -ne 0 -o $multi_core -ne 0 -o \\\n-\t$hyper_threaded -ne 0 ]; then\n-\ttst_brkm TCONF \"System is not a multi socket & multi core\" \\\n-\t\t\"& hyper-threaded\"\n-fi\n-\n-# Verify ILB runs in same package as workload.\n-RC=0\n-for sched_mc in `seq 1 $max_sched_mc`; do\n-\tif [ $sched_mc -eq 2 ]; then\n-\t\twork_load=\"kernbench\"\n-\telse\n-\t\twork_load=\"ebizzy\"\n-\tfi\n-\n-\tpm_ilb_test.py -c $sched_mc -w $work_load\n-\tif [ $? -eq 0 ]; then\n-\t\techo \"Test PASS: ILB & workload in same package for\" \\\n-\t\t\t\"sched_mc=$sched_mc\"\n-\telse\n-\t\tRC=1\n-\t\techo \"Test FAIL: ILB & workload did not run in same package\" \\\n-\t\t\t\"for sched_mc=$sched_mc. Ensure CONFIG_NO_HZ is set\"\n-\tfi\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"ILB & workload test in same package for sched_mc\"\n-else\n-\ttst_resm TFAIL \"ILB & workload test in same package for sched_mc\"\n-fi\n-\n-RC=0\n-for sched_mc in `seq 1 $max_sched_mc`; do\n-\tif [ $sched_mc -eq 2 ]; then\n-\t\twork_load=\"kernbench\"\n-\telse\n-\t\twork_load=\"ebizzy\"\n-\tfi\n-\tfor sched_smt in `seq 1 $max_sched_smt`; do\n-\t\tpm_ilb_test.py -c $sched_mc -t sched_smt -w $work_load\n-\t\tif [ $? -eq 0 ]; then\n-\t\t\techo \"Test PASS: ILB & workload in same package for\" \\\n-\t\t\t\t\"sched_mc=$sched_mc & sched_smt=$sched_smt\"\n-\t\telse\n-\t\t\tRC=1\n-\t\t\techo \"Test FAIL: ILB & workload did not execute in\" \\\n-\t\t\t\t\"same package for sched_mc=$sched_mc &\" \\\n-\t\t\t\t\"sched_smt=$sched_smt. Ensure CONFIG_NO_HZ is set\"\n-\t\tfi\n-\tdone\n-done\n-if [ $RC -eq 0 ]; then\n-\ttst_resm TPASS \"ILB & workload test in same package for\" \\\n-\t\t\"sched_mc & sched_smt\"\n-else\n-\ttst_resm TFAIL \"ILB & workload test in same package for\" \\\n-\t\t\"sched_mc & sched_smt\"\n-fi\n-\n-tst_exit\n",
    "prefixes": [
        "v2",
        "1/2"
    ]
}