Message ID | 20180605071337.22915-3-joel@jms.id.au |
---|---|
State | Accepted |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 410NND1wK5z9s0W for <incoming@patchwork.ozlabs.org>; Tue, 5 Jun 2018 17:14:36 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tbae1Oqz"; 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 410NND0MQzzF1nZ for <incoming@patchwork.ozlabs.org>; Tue, 5 Jun 2018 17:14:36 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tbae1Oqz"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com; envelope-from=joel.stan@gmail.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tbae1Oqz"; 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 410NMd1zJczF1mC for <skiboot@lists.ozlabs.org>; Tue, 5 Jun 2018 17:14:05 +1000 (AEST) Received: by mail-pg0-x241.google.com with SMTP id p21-v6so717051pgd.11 for <skiboot@lists.ozlabs.org>; Tue, 05 Jun 2018 00:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eLcbawZvFdEID9AKoajRgluTdil9cmqiSrrZp8dHz20=; b=tbae1OqzgPrxQx99+tcUiT85CjmXiw/uNPXlo5TQ9ksjGlsj8JewugpPELThuWXiBZ m91fYzZciLYi1YLvWcFJoxp2U/IpR6LcG8g/56Lwuf1SSutRD0FL6+WyuZ+kTZCLPc5Q Z50XiQQ2X0dakCZx5GSBvixyNZiNNZHDjAZlpkyDl42Pn08MzCi+9HjbaYtWiuOXPdYy EFEKrBHTH+fTStWte3EOszZrB66c8D7mX2WPhBIg5UqFNtR1r5MBVTT16hCQUb1BD7KR ohAhUtIkZ7bs8qph2VI95BOhR/tbMrmS9kL6kqL9K4Blmz42pqQQG9BTc5WppMPK1PgR EYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=eLcbawZvFdEID9AKoajRgluTdil9cmqiSrrZp8dHz20=; b=nRIUMeDmsWy6F4Dxwp3xDLkes7bpZ3rmhkojc6t4AXkaV04HznLNOYsxl2yFAUizkE z1FUr0U97p4NEKGEqLk5gk7HCX8KzxW6RrSnUA0HiaBn1vHgaox3Ze44IApcIvEi8kbJ ctmllc9+tx1JIg75HchEvAtBIdlkL/C2lBUBmTfvcN/h8MJ5gGTq7B6kTqUebRrBTiJh 5uYoVXfKVRaFtSNlZy9bJIPab052H+976kDkPe3eZHB5EQoLVvDsYL1SPvpm5IH9Cgdw 3THz+wFQ2UeHZnxaTNkHK4v1z8eCb7uPvEEw06Ikn5r5N6OhT/E5F3FiadLTCjHsqvHI EqaQ== X-Gm-Message-State: ALKqPwd66AnMxyXMdIG0S07MrwAKLgz447HF4pzqSqNHSbbNWzS/0A0m kX89+AcLo7zwaq9QJWd/it1+NHat X-Google-Smtp-Source: ADUXVKJQIoVM07S1WxxWKoxCCt7YcPKMNmJs2vXvXkSjzydWZ3kmTOMOYvo7phvHwg69J1y2MXy2aQ== X-Received: by 2002:a62:9652:: with SMTP id c79-v6mr24622565pfe.114.1528182842046; Tue, 05 Jun 2018 00:14:02 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id k186-v6sm96736350pfc.142.2018.06.05.00.13.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 00:14:01 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 05 Jun 2018 16:43:56 +0930 From: Joel Stanley <joel@jms.id.au> To: skiboot@lists.ozlabs.org Date: Tue, 5 Jun 2018 16:43:35 +0930 Message-Id: <20180605071337.22915-3-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180605071337.22915-1-joel@jms.id.au> References: <20180605071337.22915-1-joel@jms.id.au> Subject: [Skiboot] [PATCH 2/4] timebase: Remove unused remaining time calculation X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Misc fixes
|
expand
|
diff --git a/core/timebase.c b/core/timebase.c index 777e4ba6b668..24e72959f542 100644 --- a/core/timebase.c +++ b/core/timebase.c @@ -41,7 +41,6 @@ static void time_wait_poll(unsigned long duration) if (remaining >= period) { opal_run_pollers(); time_wait_nopoll(period); - remaining -= period; } else time_wait_nopoll(remaining);
In db9c1422002c ("Improve cpu_idle when PM is disabled") the time_wait_poll calculation was modified to calculate the remaining time on each loop. Because of this we don't need to decrement remaining any more. Found by scan-build. Signed-off-by: Joel Stanley <joel@jms.id.au> --- core/timebase.c | 1 - 1 file changed, 1 deletion(-)