From patchwork Fri Sep 22 11:34:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen Pais X-Patchwork-Id: 817447 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xzBcG1vVrz9sP1 for ; Fri, 22 Sep 2017 21:50:06 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oXCMU75W"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xzBcG0lyHzDsMD for ; Fri, 22 Sep 2017 21:50:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oXCMU75W"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::242; helo=mail-pf0-x242.google.com; envelope-from=allen.lkml@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oXCMU75W"; dkim-atps=neutral Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xzBH41Y54zDqjC for ; Fri, 22 Sep 2017 21:35:12 +1000 (AEST) Received: by mail-pf0-x242.google.com with SMTP id i23so355829pfi.2 for ; Fri, 22 Sep 2017 04:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=s/lLocRq+oRxhvS3DDsoJNq4MCWoRFiKQ12bQTDQ7uo=; b=oXCMU75WaKfDh9Gf0g4As1MftKtzp85S4cym3tiBTUz3sGJzp6qMr21C1Tl+ZRYa1K KREncrDywDKU5BWZaUEbLWl8MihxM64WiPof68aK+Wa9Yf6x1WOo040fkFZQ/m94B4vQ e3MeWAKHwtlAr7TG+X9a4UvNAnZ896WGPbC8ZWuYqpw9v/Yv3RjeMetcAoEtWUuGuB0g dl7CpgvcRzok6IQ/oDULxog0ZUGgUIGCcX+ga2LeYredbU3wr5ePyp/NeEpNJPuAovXD J3Z/y5fgZgT2Ls4EC2aVtESVG/2a53Yxpy+NQvB7pLR54XwE7JBWrlvDD1rVaZIHItgZ 0zTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=s/lLocRq+oRxhvS3DDsoJNq4MCWoRFiKQ12bQTDQ7uo=; b=CeQW2VLzjsxGPlwN18bYCBc58Afb5jVc0lBTc/JiTrx/6WxhojbT3iGg3jYK4bd3My WChwfdJpDSNl1+Qat6XSiYwZIivJoWQEDwiBwF+Ghqc/wo4XV0Dpwg/B7Yb7arqrBkVf 2vZXlKrAu0xPfoWe8bqUsXK9MiUqPpir6eZ9HhWBrcTk3u/rpmZbeWz6w7nj55f4yvBF jET+V4N5U8lF6iE3dd7Cm4d3/ubhgVAv5fLb4HnRKnYvMxWvI5+6tqF882uKpfSrf+HQ /l0okoVMsAKXtdzhePcJaBaucEc5AEd/xY+Qa5dfyPM2RNSYfwriahp44Ov1WGb7ClGR saYw== X-Gm-Message-State: AHPjjUjadUudTp/LQQ0AsAGMO670bl2RJHJYyWknfLhxaK9/38kTcgSc 2m5oC3Lv5sZlhqJFj37QBzA= X-Google-Smtp-Source: AOwi7QBp0fiMAbPUGe/TJCLuqdyWXoOrtf0tk13TCGTfIny69HNxF96Tb887+nY6asuZiHPm9QzFAg== X-Received: by 10.99.124.87 with SMTP id l23mr9037365pgn.351.1506080110071; Fri, 22 Sep 2017 04:35:10 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u31sm6634133pgn.70.2017.09.22.04.35.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 04:35:08 -0700 (PDT) From: Allen Pais 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Allen Pais Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- arch/powerpc/oprofile/op_model_cell.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index c82497a..264b6ab 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c @@ -555,9 +555,7 @@ static void cell_virtual_cntr(unsigned long data) static void start_virt_cntrs(void) { - init_timer(&timer_virt_cntr); - timer_virt_cntr.function = cell_virtual_cntr; - timer_virt_cntr.data = 0UL; + setup_timer(&timer_virt_cntr, cell_virtual_cntr, 0UL); timer_virt_cntr.expires = jiffies + HZ / 10; add_timer(&timer_virt_cntr); } @@ -679,9 +677,7 @@ static void spu_evnt_swap(unsigned long data) static void start_spu_event_swap(void) { - init_timer(&timer_spu_event_swap); - timer_spu_event_swap.function = spu_evnt_swap; - timer_spu_event_swap.data = 0UL; + setup_timer(&timer_spu_event_swap, spu_evnt_swap, 0UL); timer_spu_event_swap.expires = jiffies + HZ / 25; add_timer(&timer_spu_event_swap); } From patchwork Fri Sep 22 11:34:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen Pais X-Patchwork-Id: 817448 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xzBfW71TJz9sP1 for ; Fri, 22 Sep 2017 21:52:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tDU5/eUH"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xzBfW5qW1zDsN5 for ; Fri, 22 Sep 2017 21:52:03 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tDU5/eUH"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com; envelope-from=allen.lkml@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tDU5/eUH"; dkim-atps=neutral Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xzBH668PTzDqjC for ; Fri, 22 Sep 2017 21:35:14 +1000 (AEST) Received: by mail-pg0-x241.google.com with SMTP id d8so481944pgt.3 for ; Fri, 22 Sep 2017 04:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k+EZHdFwFrT4NsMkz2CK6HjTc7+jR05FZk6xsPbt5l8=; b=tDU5/eUHhmPEbMYdcBDcTwkt8d05l1OOoNUO6Cl0kEEhtTeSBqggpc0jdxYhww5BOG nUV4rNLKkfp95t+tIKVV5mxFqgZkHOazbsZF0+Q5k6Z4bNKt21uWZ1IiUUUG2Wov8pKo tCmw/NsjjDs5QFM9TsSC4ikbT+UNZM0TzoqECS3GFVhMzCIvUCq+zUxhDylyecyjNI7P O3pHqHGWXbveQ1cZMKbSGCSwwXRrNZKWW/PzFxYgSTlA9JbJqbaTzxtBPbsQJJOfjO0q BYSUUUSRCzQpBy3G1lZwnJnFG5EfVDFg6R4LFtFURCMIAn/OJv52fJHI0/j6K2/wCaK0 uARw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k+EZHdFwFrT4NsMkz2CK6HjTc7+jR05FZk6xsPbt5l8=; b=B61cOuKiwOr7YZETciEkMsqPlJJf4rLHra8SVSzRo+TTqDOJGPVqDFgwe5HZarJ4PY GRabDQBCnNv+vrNeCgTlfCprjZXOa8cURdpOodR2Uuw51nfpdB3RA1JTz7vEv2K0UnVt ZmdZVp28kWVuE4UQT2wFX4dMB3zOZ76TvzYraYsdkICq8r7fITSeo91EdaBFCUf3pyj0 8vhdBz0x5QtgaZbZF06p6UCYVeP4qMiugOploUfP+qAlMfY8x+x5nILUWf+NoRQDHbZt CePY82hfUhi15m/1iCcQ4A7BbIzXbf2T6mbkeNHi3vOxA0WpzIYLABSsuMZJ3nL1LTfL tQxA== X-Gm-Message-State: AHPjjUhcghWNaJgbUh5sAuZ9MTQdtjzlrhJuh4QWj3BjyFJsPdldzL/T OVKikTLp2Er310U1SyhhqV0= X-Google-Smtp-Source: AOwi7QDCZhpGz8zIPmG0FtzVZHBh3XVDyn7Xk6IJI1A40SBFoyH3DgWo05UXEG9ZrcghLQggl7vgBg== X-Received: by 10.84.238.137 with SMTP id v9mr8925741plk.180.1506080112588; Fri, 22 Sep 2017 04:35:12 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u31sm6634133pgn.70.2017.09.22.04.35.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 04:35:11 -0700 (PDT) From: Allen Pais To: paulus@samba.org Subject: [PATCH 2/3] powerpc: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:04:59 +0530 Message-Id: <1506080100-5660-3-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:51 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Allen Pais Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- arch/powerpc/kernel/tau_6xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index a753b72..726c2d6 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -229,8 +229,7 @@ int __init TAU_init(void) /* first, set up the window shrinking timer */ - init_timer(&tau_timer); - tau_timer.function = tau_timeout_smp; + setup_timer(&tau_timer, tau_timeout_smp, 0UL); tau_timer.expires = jiffies + shrink_timer; add_timer(&tau_timer); From patchwork Fri Sep 22 11:35:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen Pais X-Patchwork-Id: 817449 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xzBhQ6jFJz9sP1 for ; Fri, 22 Sep 2017 21:53:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QVlXDQGt"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xzBhQ5YnFzDsN9 for ; Fri, 22 Sep 2017 21:53:42 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QVlXDQGt"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::241; helo=mail-pf0-x241.google.com; envelope-from=allen.lkml@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QVlXDQGt"; dkim-atps=neutral Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xzBHB629rzDqjC for ; Fri, 22 Sep 2017 21:35:18 +1000 (AEST) Received: by mail-pf0-x241.google.com with SMTP id i23so355911pfi.2 for ; Fri, 22 Sep 2017 04:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B13niSdIR0jOsjyDTN4bALj9CIcmYiSaoQyHVfbtCyY=; b=QVlXDQGtB9VS7d6SLzbKaWdJNLd8cRc5St2ddL+fKut/p4UhzWYcCw1dgcotaW7mEb za8v6kk+nKciHXbCNzyd3c7askeUfYEE90dDDn9Vd7g1f6Fh/zp3DfcIIikCBXHt/8QE XMCxD+VWDaPJIjr4mJpEO6Q1cAYC74z+m9NVNrr1ZNUteidnnLhvBNtKeUuCcdYqzoxq b0ScqfJSuYQWS8uwIZ4gL1O79kse9PnuwsFGwgI35Zr8vaC/Pz6jbwhqY+qH2bwJHxGe eoz2uA4buP2pmqf+nLoEtt8nC5r1lEj8hpqX5gwbCIng4SSwKnIl6LaUWpNxXv2xeAJ2 l4HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B13niSdIR0jOsjyDTN4bALj9CIcmYiSaoQyHVfbtCyY=; b=PlEOawKiyIc/ftfRGRBQKhowkgtuFJpOgbiZTz5NC61VqiqpQzR4ScMJgD5MenUFIA A8tfGd9MbAHvFntpjsiXito5p6f8pZEkEk7xQOFbpef59ERD+cZk7H8HJSCvKSsXaV1/ u0lPTQCIHI5PJIxxNVhrvT4maALhFsQ2Okz16+QpT55Gj5qLVOuqfAjlqG+qwXZyyr2Z DNn9tJGBJHycJF/4BhNEj0anZQYM73YKP2gRwEV+G25EGLqv+MTNpJjXgHa24SyziGqf WrRt2s4BSe3T1RxS/X6AKzbn3L0EUo0udk87TCwZtTc7huqQfledcNIupzFPYaVD933t sRVw== X-Gm-Message-State: AHPjjUgSDwjoC12EUIu+ZWpalLuyyUjuNplobVTxNsmns1ECPNclrdsj 6E8OyENNC76buGqDkkr1J3I= X-Google-Smtp-Source: AOwi7QB2JmrsV/nl+LJDLhGL+TCwm9adVXzqbD7+e+DtqR7NedHfJ02CgRyarw7nNK7SAYK3Wt+ijw== X-Received: by 10.159.245.149 with SMTP id a21mr3353865pls.57.1506080115346; Fri, 22 Sep 2017 04:35:15 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u31sm6634133pgn.70.2017.09.22.04.35.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 04:35:14 -0700 (PDT) From: Allen Pais To: paulus@samba.org Subject: [PATCH 3/3] powerpc: powermac: use setup_timer() helper. Date: Fri, 22 Sep 2017 17:05:00 +0530 Message-Id: <1506080100-5660-4-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:51 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Allen Pais Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- arch/powerpc/platforms/powermac/low_i2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index 70183eb..39a1d42 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c @@ -513,9 +513,7 @@ static struct pmac_i2c_host_kw *__init kw_i2c_host_init(struct device_node *np) mutex_init(&host->mutex); init_completion(&host->complete); spin_lock_init(&host->lock); - init_timer(&host->timeout_timer); - host->timeout_timer.function = kw_i2c_timeout; - host->timeout_timer.data = (unsigned long)host; + setup_timer(&host->timeout_timer, kw_i2c_timeout, (unsigned long)host); psteps = of_get_property(np, "AAPL,address-step", NULL); steps = psteps ? (*psteps) : 0x10;