get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218146,
    "url": "http://patchwork.ozlabs.org/api/patches/2218146/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260331131622.30505-10-frederic@kernel.org/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20260331131622.30505-10-frederic@kernel.org>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260331131622.30505-10-frederic@kernel.org/",
    "date": "2026-03-31T13:16:17",
    "name": "[09/14] tick/sched: Remove unused fields",
    "commit_ref": null,
    "pull_url": null,
    "state": "handled-elsewhere",
    "archived": false,
    "hash": "b4081c97f7fd5c308b88b55009cc632f017b81d7",
    "submitter": {
        "id": 79411,
        "url": "http://patchwork.ozlabs.org/api/people/79411/?format=api",
        "name": "Frederic Weisbecker",
        "email": "frederic@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260331131622.30505-10-frederic@kernel.org/mbox/",
    "series": [
        {
            "id": 498198,
            "url": "http://patchwork.ozlabs.org/api/series/498198/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=498198",
            "date": "2026-03-31T13:16:08",
            "name": "tick/sched: Refactor idle cputime accounting",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/498198/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218146/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218146/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19089-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=YlxKKPwK;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19089-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2600:3c0a:e001:78e:0:1991:8:25\"",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=YlxKKPwK;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org;\n envelope-from=frederic@kernel.org; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4flTF566JRz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 00:17:45 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4flTF24gCHz2yjs;\n\tWed, 01 Apr 2026 00:17:42 +1100 (AEDT)",
            "from sea.source.kernel.org (sea.source.kernel.org\n [IPv6:2600:3c0a:e001:78e:0:1991:8:25])\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 lists.ozlabs.org (Postfix) with ESMTPS id 4flTF14y8Rz2ygh\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 01 Apr 2026 00:17:41 +1100 (AEDT)",
            "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby sea.source.kernel.org (Postfix) with ESMTP id A5C2942D97;\n\tTue, 31 Mar 2026 13:17:39 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id B4CBCC2BCB2;\n\tTue, 31 Mar 2026 13:17:32 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774963062;\n\tcv=none;\n b=J4N7Rcma3cXfP/6xiV7tpS/Jax8EKdOQgYzcC6Z7CCq3+aSBtWhJ9f/yFyarfz0A9NghRAnVJkSaP3iaETxQn4EOFkKh4N2mmLATZPf6E/P9UlJLbsw67uCOEmpNjgI6mwA17F8h4ZPj+oRWJSN1jiiJaXRO726D86dDdQZyuryWPysbFkHL4wnJiZ6xTYo+M3sZZRqF9a4/6gJ3HlJQUBr3KJt7fBp8Zo0WAKtvMoV9eirFEiBcl0SvIAGrcGB5p92WQ1/1hlNrEPWjgCgpN/5fquRL1dullE1IZ48/fnekHQ0Lpnb6Zjhv5gXgjvoOj+UtCQIIWGWSallXNZPTWQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774963062; c=relaxed/relaxed;\n\tbh=Zgo28FKQZalLLDv7TZJuvfy4HJ2G5e/azJLORaHkRwE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=ofbhOilSXvdIxGsz4Mgp5XsKDOlwA/rw/y2WA7oncp8YT16jB46K8guW4XLOVhxcusYpTLs6zbc+gZtJSot/FHiCyr9uHDGsJfMUQlySvYNVOe4cqEMP7dhcPrsCm2nCiLwQyu2RxSfso5GNW16bfgJpN2dSOYBfbr2Pnpoygh9cKvaUYup3XbTKlkV5Yc2VB0m41FVXI04vsXaJUHlx2xqNOLGVtBu/tfQkPZiyChf7yQI2sx4DDgi3u48M9Mp5iK5nxTfEFEX/9fSC3SWZmaXJSHvUHzX8Ul6hbd7g1EO9FkSFuB9xARypV+TtFxGcLhfKDbbcI6PeCiIgwUfl/A==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=YlxKKPwK; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25;\n helo=sea.source.kernel.org; envelope-from=frederic@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1774963059;\n\tbh=TjYFIgCHyh+/o6L1KtAM5WwypjR946R5y+AKSoRMF7c=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=YlxKKPwKpD/abGgPr/0nLZeecm+jfIIDBUsfwzJRzObTAqgHgyT3EvQVr1sAWC3JT\n\t nbYWjM5uSHyojZLhY7d6NkcpgI+MSiDZSYmzSE/sI84vOAr6z9G633U7pFIi2ktoQl\n\t z/6z9f4sLl6lS3MsRyYjPI5df9QNRItFO1Pr5T1t1ojEBmP4xekFvaeZj6NZh4GKqh\n\t x1ELoJCBQFMez2x7QWmLg2wGaDFZYGnJCHK8Y2KNef6xJCjIEeKAnxg89h3qS6U2gA\n\t HyrlrStC8pINuvV+EDY7wTUElJYf1K0/1zqhJZxnbMJ5RTkei7eL4eFSYU88wO+8qf\n\t NHWKSq/l6aZzg==",
        "From": "Frederic Weisbecker <frederic@kernel.org>",
        "To": "LKML <linux-kernel@vger.kernel.org>",
        "Cc": "Frederic Weisbecker <frederic@kernel.org>,\n\t\"Christophe Leroy (CS GROUP)\" <chleroy@kernel.org>,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tAlexander Gordeev <agordeev@linux.ibm.com>,\n\tAnna-Maria Behnsen <anna-maria@linutronix.de>,\n\tBen Segall <bsegall@google.com>,\n\tBoqun Feng <boqun.feng@gmail.com>,\n\tChristian Borntraeger <borntraeger@linux.ibm.com>,\n\tDietmar Eggemann <dietmar.eggemann@arm.com>,\n\tHeiko Carstens <hca@linux.ibm.com>,\n\tIngo Molnar <mingo@redhat.com>,\n\tJan Kiszka <jan.kiszka@siemens.com>,\n\tJoel Fernandes <joelagnelf@nvidia.com>,\n\tJuri Lelli <juri.lelli@redhat.com>,\n\tKieran Bingham <kbingham@kernel.org>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMel Gorman <mgorman@suse.de>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tNeeraj Upadhyay <neeraj.upadhyay@kernel.org>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\t\"Paul E . McKenney\" <paulmck@kernel.org>,\n\tPeter Zijlstra <peterz@infradead.org>,\n\tShrikanth Hegde <sshegde@linux.ibm.com>,\n\tSteven Rostedt <rostedt@goodmis.org>,\n\tSven Schnelle <svens@linux.ibm.com>,\n\tThomas Gleixner <tglx@linutronix.de>,\n\tUladzislau Rezki <urezki@gmail.com>,\n\tValentin Schneider <vschneid@redhat.com>,\n\tVasily Gorbik <gor@linux.ibm.com>,\n\tVincent Guittot <vincent.guittot@linaro.org>,\n\tViresh Kumar <viresh.kumar@linaro.org>,\n\tXin Zhao <jackzxcui1989@163.com>,\n\tlinux-pm@vger.kernel.org,\n\tlinux-s390@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH 09/14] tick/sched: Remove unused fields",
        "Date": "Tue, 31 Mar 2026 15:16:17 +0200",
        "Message-ID": "<20260331131622.30505-10-frederic@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260331131622.30505-1-frederic@kernel.org>",
        "References": "<20260331131622.30505-1-frederic@kernel.org>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "Remove fields after the dyntick-idle cputime migration to scheduler\ncode.\n\nSigned-off-by: Frederic Weisbecker <frederic@kernel.org>\nTested-by: Shrikanth Hegde <sshegde@linux.ibm.com>\n---\n kernel/time/tick-sched.h       | 12 ------------\n kernel/time/timer_list.c       |  6 +-----\n scripts/gdb/linux/timerlist.py |  4 ----\n 3 files changed, 1 insertion(+), 21 deletions(-)",
    "diff": "diff --git a/kernel/time/tick-sched.h b/kernel/time/tick-sched.h\nindex b4a7822f495d..79b9252047b1 100644\n--- a/kernel/time/tick-sched.h\n+++ b/kernel/time/tick-sched.h\n@@ -44,9 +44,7 @@ struct tick_device {\n  *\t\t\tto resume the tick timer operation in the timeline\n  *\t\t\twhen the CPU returns from nohz sleep.\n  * @next_tick:\t\tNext tick to be fired when in dynticks mode.\n- * @idle_jiffies:\tjiffies at the entry to idle for idle time accounting\n  * @idle_waketime:\tTime when the idle was interrupted\n- * @idle_sleeptime_seq:\tsequence counter for data consistency\n  * @idle_entrytime:\tTime when the idle call was entered\n  * @last_jiffies:\tBase jiffies snapshot when next event was last computed\n  * @timer_expires_base:\tBase time clock monotonic for @timer_expires\n@@ -55,9 +53,6 @@ struct tick_device {\n  * @idle_expires:\tNext tick in idle, for debugging purpose only\n  * @idle_calls:\t\tTotal number of idle calls\n  * @idle_sleeps:\tNumber of idle calls, where the sched tick was stopped\n- * @idle_exittime:\tTime when the idle state was left\n- * @idle_sleeptime:\tSum of the time slept in idle with sched tick stopped\n- * @iowait_sleeptime:\tSum of the time slept in idle with sched tick stopped, with IO outstanding\n  * @tick_dep_mask:\tTick dependency mask - is set, if someone needs the tick\n  * @check_clocks:\tNotification mechanism about clocksource changes\n  */\n@@ -73,12 +68,10 @@ struct tick_sched {\n \tstruct hrtimer\t\t\tsched_timer;\n \tktime_t\t\t\t\tlast_tick;\n \tktime_t\t\t\t\tnext_tick;\n-\tunsigned long\t\t\tidle_jiffies;\n \tktime_t\t\t\t\tidle_waketime;\n \tunsigned int\t\t\tgot_idle_tick;\n \n \t/* Idle entry */\n-\tseqcount_t\t\t\tidle_sleeptime_seq;\n \tktime_t\t\t\t\tidle_entrytime;\n \n \t/* Tick stop */\n@@ -90,11 +83,6 @@ struct tick_sched {\n \tunsigned long\t\t\tidle_calls;\n \tunsigned long\t\t\tidle_sleeps;\n \n-\t/* Idle exit */\n-\tktime_t\t\t\t\tidle_exittime;\n-\tktime_t\t\t\t\tidle_sleeptime;\n-\tktime_t\t\t\t\tiowait_sleeptime;\n-\n \t/* Full dynticks handling */\n \tatomic_t\t\t\ttick_dep_mask;\n \ndiff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c\nindex 488e47e96e93..e77b512e8597 100644\n--- a/kernel/time/timer_list.c\n+++ b/kernel/time/timer_list.c\n@@ -154,14 +154,10 @@ static void print_cpu(struct seq_file *m, int cpu, u64 now)\n \t\tP_flag(highres, TS_FLAG_HIGHRES);\n \t\tP_ns(last_tick);\n \t\tP_flag(tick_stopped, TS_FLAG_STOPPED);\n-\t\tP(idle_jiffies);\n \t\tP(idle_calls);\n \t\tP(idle_sleeps);\n \t\tP_ns(idle_entrytime);\n \t\tP_ns(idle_waketime);\n-\t\tP_ns(idle_exittime);\n-\t\tP_ns(idle_sleeptime);\n-\t\tP_ns(iowait_sleeptime);\n \t\tP(last_jiffies);\n \t\tP(next_timer);\n \t\tP_ns(idle_expires);\n@@ -258,7 +254,7 @@ static void timer_list_show_tickdevices_header(struct seq_file *m)\n \n static inline void timer_list_header(struct seq_file *m, u64 now)\n {\n-\tSEQ_printf(m, \"Timer List Version: v0.10\\n\");\n+\tSEQ_printf(m, \"Timer List Version: v0.11\\n\");\n \tSEQ_printf(m, \"HRTIMER_MAX_CLOCK_BASES: %d\\n\", HRTIMER_MAX_CLOCK_BASES);\n \tSEQ_printf(m, \"now at %Ld nsecs\\n\", (unsigned long long)now);\n \tSEQ_printf(m, \"\\n\");\ndiff --git a/scripts/gdb/linux/timerlist.py b/scripts/gdb/linux/timerlist.py\nindex ccc24d30de80..c14ce55674c9 100644\n--- a/scripts/gdb/linux/timerlist.py\n+++ b/scripts/gdb/linux/timerlist.py\n@@ -90,14 +90,10 @@ def print_cpu(hrtimer_bases, cpu, max_clock_bases):\n             text += f\"  .{'nohz':15s}: {int(bool(ts['flags'] & TS_FLAG_NOHZ))}\\n\"\n             text += f\"  .{'last_tick':15s}: {ts['last_tick']}\\n\"\n             text += f\"  .{'tick_stopped':15s}: {int(bool(ts['flags'] & TS_FLAG_STOPPED))}\\n\"\n-            text += f\"  .{'idle_jiffies':15s}: {ts['idle_jiffies']}\\n\"\n             text += f\"  .{'idle_calls':15s}: {ts['idle_calls']}\\n\"\n             text += f\"  .{'idle_sleeps':15s}: {ts['idle_sleeps']}\\n\"\n             text += f\"  .{'idle_entrytime':15s}: {ts['idle_entrytime']} nsecs\\n\"\n             text += f\"  .{'idle_waketime':15s}: {ts['idle_waketime']} nsecs\\n\"\n-            text += f\"  .{'idle_exittime':15s}: {ts['idle_exittime']} nsecs\\n\"\n-            text += f\"  .{'idle_sleeptime':15s}: {ts['idle_sleeptime']} nsecs\\n\"\n-            text += f\"  .{'iowait_sleeptime':15s}: {ts['iowait_sleeptime']} nsecs\\n\"\n             text += f\"  .{'last_jiffies':15s}: {ts['last_jiffies']}\\n\"\n             text += f\"  .{'next_timer':15s}: {ts['next_timer']}\\n\"\n             text += f\"  .{'idle_expires':15s}: {ts['idle_expires']} nsecs\\n\"\n",
    "prefixes": [
        "09/14"
    ]
}