Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817447/?format=api
{ "id": 817447, "url": "http://patchwork.ozlabs.org/api/patches/817447/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1506080100-5660-2-git-send-email-allen.lkml@gmail.com/", "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": "<1506080100-5660-2-git-send-email-allen.lkml@gmail.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1506080100-5660-2-git-send-email-allen.lkml@gmail.com/", "date": "2017-09-22T11:34:58", "name": "[1/3] powerpc: oprofile: use setup_timer() helper.", "commit_ref": "83ad1e6a1dc049dd04be4564125a7fd49e022183", "pull_url": null, "state": "accepted", "archived": false, "hash": "058a84023a55fbeed0d1ec74f407a8a2943a45af", "submitter": { "id": 72354, "url": "http://patchwork.ozlabs.org/api/people/72354/?format=api", "name": "Allen Pais", "email": "allen.lkml@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1506080100-5660-2-git-send-email-allen.lkml@gmail.com/mbox/", "series": [ { "id": 4604, "url": "http://patchwork.ozlabs.org/api/series/4604/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=4604", "date": "2017-09-22T11:34:57", "name": "use setup_timer() helper function.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4604/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817447/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817447/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xzBcG1vVrz9sP1\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 21:50:06 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xzBcG0lyHzDsMD\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 21:50:06 +1000 (AEST)", "from mail-pf0-x242.google.com (mail-pf0-x242.google.com\n\t[IPv6:2607:f8b0:400e:c00::242])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xzBH41Y54zDqjC\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 22 Sep 2017 21:35:12 +1000 (AEST)", "by mail-pf0-x242.google.com with SMTP id i23so355829pfi.2\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 22 Sep 2017 04:35:11 -0700 (PDT)", "from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tu31sm6634133pgn.70.2017.09.22.04.35.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 22 Sep 2017 04:35:08 -0700 (PDT)" ], "Authentication-Results": [ "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oXCMU75W\"; dkim-atps=neutral", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oXCMU75W\"; dkim-atps=neutral", "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c00::242; helo=mail-pf0-x242.google.com;\n\tenvelope-from=allen.lkml@gmail.com; receiver=<UNKNOWN>)", "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oXCMU75W\"; dkim-atps=neutral" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=s/lLocRq+oRxhvS3DDsoJNq4MCWoRFiKQ12bQTDQ7uo=;\n\tb=oXCMU75WaKfDh9Gf0g4As1MftKtzp85S4cym3tiBTUz3sGJzp6qMr21C1Tl+ZRYa1K\n\tKREncrDywDKU5BWZaUEbLWl8MihxM64WiPof68aK+Wa9Yf6x1WOo040fkFZQ/m94B4vQ\n\te3MeWAKHwtlAr7TG+X9a4UvNAnZ896WGPbC8ZWuYqpw9v/Yv3RjeMetcAoEtWUuGuB0g\n\tdl7CpgvcRzok6IQ/oDULxog0ZUGgUIGCcX+ga2LeYredbU3wr5ePyp/NeEpNJPuAovXD\n\tJ3Z/y5fgZgT2Ls4EC2aVtESVG/2a53Yxpy+NQvB7pLR54XwE7JBWrlvDD1rVaZIHItgZ\n\t0zTg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=s/lLocRq+oRxhvS3DDsoJNq4MCWoRFiKQ12bQTDQ7uo=;\n\tb=CeQW2VLzjsxGPlwN18bYCBc58Afb5jVc0lBTc/JiTrx/6WxhojbT3iGg3jYK4bd3My\n\tWChwfdJpDSNl1+Qat6XSiYwZIivJoWQEDwiBwF+Ghqc/wo4XV0Dpwg/B7Yb7arqrBkVf\n\t2vZXlKrAu0xPfoWe8bqUsXK9MiUqPpir6eZ9HhWBrcTk3u/rpmZbeWz6w7nj55f4yvBF\n\tjET+V4N5U8lF6iE3dd7Cm4d3/ubhgVAv5fLb4HnRKnYvMxWvI5+6tqF882uKpfSrf+HQ\n\t/l0okoVMsAKXtdzhePcJaBaucEc5AEd/xY+Qa5dfyPM2RNSYfwriahp44Ov1WGb7ClGR\n\tsaYw==", "X-Gm-Message-State": "AHPjjUjadUudTp/LQQ0AsAGMO670bl2RJHJYyWknfLhxaK9/38kTcgSc\n\t2m5oC3Lv5sZlhqJFj37QBzA=", "X-Google-Smtp-Source": "AOwi7QBp0fiMAbPUGe/TJCLuqdyWXoOrtf0tk13TCGTfIny69HNxF96Tb887+nY6asuZiHPm9QzFAg==", "X-Received": "by 10.99.124.87 with SMTP id l23mr9037365pgn.351.1506080110071; \n\tFri, 22 Sep 2017 04:35:10 -0700 (PDT)", "From": "Allen Pais <allen.lkml@gmail.com>", "To": "paulus@samba.org", "Subject": "[PATCH 1/3] powerpc: oprofile: use setup_timer() helper.", "Date": "Fri, 22 Sep 2017 17:04:58 +0530", "Message-Id": "<1506080100-5660-2-git-send-email-allen.lkml@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1506080100-5660-1-git-send-email-allen.lkml@gmail.com>", "References": "<1506080100-5660-1-git-send-email-allen.lkml@gmail.com>", "X-Mailman-Approved-At": "Fri, 22 Sep 2017 21:46:50 +1000", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.24", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Cc": "linuxppc-dev@lists.ozlabs.org, Allen Pais <allen.lkml@gmail.com>", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "Use setup_timer function instead of initializing timer with the\n function and data fields.\n\nSigned-off-by: Allen Pais <allen.lkml@gmail.com>\n---\n arch/powerpc/oprofile/op_model_cell.c | 8 ++------\n 1 file changed, 2 insertions(+), 6 deletions(-)", "diff": "diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c\nindex c82497a..264b6ab 100644\n--- a/arch/powerpc/oprofile/op_model_cell.c\n+++ b/arch/powerpc/oprofile/op_model_cell.c\n@@ -555,9 +555,7 @@ static void cell_virtual_cntr(unsigned long data)\n \n static void start_virt_cntrs(void)\n {\n-\tinit_timer(&timer_virt_cntr);\n-\ttimer_virt_cntr.function = cell_virtual_cntr;\n-\ttimer_virt_cntr.data = 0UL;\n+\tsetup_timer(&timer_virt_cntr, cell_virtual_cntr, 0UL);\n \ttimer_virt_cntr.expires = jiffies + HZ / 10;\n \tadd_timer(&timer_virt_cntr);\n }\n@@ -679,9 +677,7 @@ static void spu_evnt_swap(unsigned long data)\n \n static void start_spu_event_swap(void)\n {\n-\tinit_timer(&timer_spu_event_swap);\n-\ttimer_spu_event_swap.function = spu_evnt_swap;\n-\ttimer_spu_event_swap.data = 0UL;\n+\tsetup_timer(&timer_spu_event_swap, spu_evnt_swap, 0UL);\n \ttimer_spu_event_swap.expires = jiffies + HZ / 25;\n \tadd_timer(&timer_spu_event_swap);\n }\n", "prefixes": [ "1/3" ] }