From patchwork Tue Mar 18 07:53:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 26460 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C4C9E202FA for ; Tue, 18 Mar 2014 07:53:35 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id cz12sf16312482veb.6 for ; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=gz9oBOh3fyyJcF4sRiSWjQbzEHIYrFuJQu8B9gevmts=; b=Hq63WS9mTI01O+KJ3CpOyYa31ZX8gjUKEn7kouhv1xiXX2x2Mm7RpAgaLCqwOCXaVx vUXN6JkzHARB59F18USC+GuIoCrAdgaTRAB/thVFwiPV0oegjy/M0I2615fwmYWGkkmT 8ruto1Duv/zyvB59TD4t0NaL7U6IJrEsrg+8Zhx62LDmoEU8wbh0HZt/faC94foL1DYr dYBRFxOKvTHEfG0ik9v4XNnfwmrMFT6aNPbjZqABvGYM7S7LJtVacqNe5LSd4uWXnCHA dMOuxKgzO/3E3sO3mmzsfcJWRv60BkK3kQweE2/G7hgrxWO13uNDe32nOM+Ev12LPESW 6yrQ== X-Gm-Message-State: ALoCoQlKe5Udf8cQNsAwUtpZlZG6N3EQF1Y4iFpQsoYxw06mkGMIGsyCyb6Kq+b13LI7MfCExjM9 X-Received: by 10.236.94.238 with SMTP id n74mr1749207yhf.27.1395129215444; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.137 with SMTP id s9ls2041276qge.57.gmail; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr5302261vcn.26.1395129215251; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id sg4si6232821vcb.86.2014.03.18.00.53.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 00:53:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so6428096veb.5 for ; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) X-Received: by 10.221.34.211 with SMTP id st19mr23715482vcb.5.1395129215145; Tue, 18 Mar 2014 00:53:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp185102vck; Tue, 18 Mar 2014 00:53:34 -0700 (PDT) X-Received: by 10.68.228.138 with SMTP id si10mr31074631pbc.13.1395129214230; Tue, 18 Mar 2014 00:53:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id se7si13113302pbb.340.2014.03.18.00.53.33; Tue, 18 Mar 2014 00:53:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbaCRHxZ (ORCPT + 26 others); Tue, 18 Mar 2014 03:53:25 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:43157 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753532AbaCRHxX (ORCPT ); Tue, 18 Mar 2014 03:53:23 -0400 Received: by mail-wi0-f173.google.com with SMTP id f8so3256225wiw.12 for ; Tue, 18 Mar 2014 00:53:22 -0700 (PDT) X-Received: by 10.180.89.136 with SMTP id bo8mr13015393wib.52.1395129202252; Tue, 18 Mar 2014 00:53:22 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id d6sm32237850wiz.4.2014.03.18.00.53.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 18 Mar 2014 00:53:21 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH] timer: use variable 'head' instead of '&work_list' in __run_timers() Date: Tue, 18 Mar 2014 13:23:15 +0530 Message-Id: <0d8645a6efc8360c4196c9797d59343abbfdcc5e.1395129136.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We already have a variable 'head' that points to '&work_list', and so we should use that instead wherever possible. Signed-off-by: Viresh Kumar --- kernel/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/timer.c b/kernel/timer.c index 6394fb5..1ef3de1 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1192,7 +1192,7 @@ static inline void __run_timers(struct tvec_base *base) !cascade(base, &base->tv4, INDEX(2))) cascade(base, &base->tv5, INDEX(3)); ++base->timer_jiffies; - list_replace_init(base->tv1.vec + index, &work_list); + list_replace_init(base->tv1.vec + index, head); while (!list_empty(head)) { void (*fn)(unsigned long); unsigned long data;