Message ID | c0c4a829b4f938d002adb79f2661474be913acee.1398072824.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBCWX2ONAKGQEHYYGV3I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C435B203F3 for <linaro@patches.linaro.org>; Mon, 21 Apr 2014 09:57:30 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oy12sf20490966veb.7 for <linaro@patches.linaro.org>; Mon, 21 Apr 2014 02:57:30 -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:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=KkwcgS7WLHf2KLvnvoxJ1EUfyV+A397AETRiUfk4yUw=; b=Pw4LofT1mGocSv9h/y044DFOzZPvob1EBcZ2pAh9qZ6NkUhRLwx7YQ61rDv+jfNxpO MsOOA/l+sRXbFhOp6L4N4RlhIlDqvGv/A1CemGCRTt8AydZ+kVZ/6ZHvvySS2yoUwMXJ 4A3sOE+/x5MEF7QwWfXcw/cUFyKl92GRuCjnGmmz4Q9WzQVpoGpwFl9E/v32bpDcrKb9 cLje+TcNYqZRSjTkqhuK1FPQQLmvg2GLoWR/Onf10udVXRoZac22dJ8QgaQzfDWg0nQm DmroXPRRP2waWMVBU8DQsLXU+FgUqc4rYX6iE7yPq8z7nvRR/TjRdfjojfZx6blCBQh4 9sVg== X-Gm-Message-State: ALoCoQn4WKIsFLVyEJ4pe8KjIjCEkkOnO+bd/WzLeMUrGQlwTFPWLsCGlA8+vGL8+CRRKHprQg58 X-Received: by 10.236.134.235 with SMTP id s71mr15454634yhi.55.1398074250537; Mon, 21 Apr 2014 02:57:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.22 with SMTP id 22ls2294352qgi.63.gmail; Mon, 21 Apr 2014 02:57:30 -0700 (PDT) X-Received: by 10.52.144.42 with SMTP id sj10mr24363893vdb.19.1398074250439; Mon, 21 Apr 2014 02:57:30 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id ud8si5645161vdc.33.2014.04.21.02.57.30 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so7598652veb.17 for <patchwork-forward@linaro.org>; Mon, 21 Apr 2014 02:57:30 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr1244573vcb.24.1398074250336; Mon, 21 Apr 2014 02:57:30 -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.221.72 with SMTP id ib8csp280300vcb; Mon, 21 Apr 2014 02:57:29 -0700 (PDT) X-Received: by 10.66.65.169 with SMTP id y9mr2044782pas.145.1398074248616; Mon, 21 Apr 2014 02:57:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si827030pbg.504.2014.04.21.02.57.27; Mon, 21 Apr 2014 02:57:27 -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 S1752160AbaDUJ5Y (ORCPT <rfc822;markus.mayer@linaro.org> + 26 others); Mon, 21 Apr 2014 05:57:24 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:62517 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051AbaDUJ5Q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Apr 2014 05:57:16 -0400 Received: by mail-wi0-f171.google.com with SMTP id q5so1626011wiv.4 for <linux-kernel@vger.kernel.org>; Mon, 21 Apr 2014 02:57:15 -0700 (PDT) X-Received: by 10.181.8.204 with SMTP id dm12mr6621379wid.1.1398074235167; Mon, 21 Apr 2014 02:57:15 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id fi2sm15213533wic.15.2014.04.21.02.57.11 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:14 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linaro-networking@linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH V2 19/19] tick-sched: rearrange code in tick_do_update_jiffies64() Date: Mon, 21 Apr 2014 15:25:15 +0530 Message-Id: <c0c4a829b4f938d002adb79f2661474be913acee.1398072824.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1398072824.git.viresh.kumar@linaro.org> References: <cover.1398072824.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1398072824.git.viresh.kumar@linaro.org> References: <cover.1398072824.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.172 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 77084fa..0647589 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -84,12 +84,12 @@ static void tick_do_update_jiffies64(ktime_t now) /* Keep the tick_next_period variable up to date */ tick_next_period = ktime_add(last_jiffies_update, tick_period); + + write_sequnlock(&jiffies_lock); + update_wall_time(); } else { write_sequnlock(&jiffies_lock); - return; } - write_sequnlock(&jiffies_lock); - update_wall_time(); } /*
The last two lines of tick_do_update_jiffies64() are only executed when 'delta.tv64 >= tick_period.tv64'. Move them to the 'if' block to make it more clear. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- kernel/time/tick-sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)