From patchwork Tue May 19 05:46:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 1292954 Return-Path: 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49R4lC4rqsz9sTC for ; Tue, 19 May 2020 15:51:51 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=abi+qRxl; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49R4lC1nLxzDqLR for ; Tue, 19 May 2020 15:51:51 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1042; helo=mail-pj1-x1042.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=abi+qRxl; dkim-atps=neutral Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49R4f235rdzDqw2 for ; Tue, 19 May 2020 15:47:22 +1000 (AEST) Received: by mail-pj1-x1042.google.com with SMTP id z15so800289pjb.0 for ; Mon, 18 May 2020 22:47:22 -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 :mime-version:content-transfer-encoding; bh=CZ7CNzdu+EXCu3zP0oShzO4BX9lNFbfLklEyPxkGk8k=; b=abi+qRxlnMf7d6LDlfBESp5KJrj0PFCdYaVcGF9npYBDSJn+hMi7r4SqSVifs6IVw1 6I9hKvCE5dJ3qt0gL13ReJ4YFI5IOemkHnwirTu5u0uyGf6M457wHz57BHZrdjwDTuOr Lvysc09DeP8aZ6+q1Jf3e8hi5/Nwj/A05OOy02xFWxiqE1rW4xnusKwhNRTO0jI2E64t mEJxgFdQuvtqxcoc3Sm5PCgl3UwWxgbF6/2UR41xL9xWwjZjN4TKyDTrs0IPNWufmSNr miejPiIqVlesY5gC9GUq7cnByRbEfVCSReMcSwKWzFBHCXrYMLjSAFKX4igRzizYtvKW KuEA== 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:mime-version:content-transfer-encoding; bh=CZ7CNzdu+EXCu3zP0oShzO4BX9lNFbfLklEyPxkGk8k=; b=DMdu6uvZMO9a4Tlx0oivXubEhTycgWIyfnsjAJo0DJbquiySCWn2uhS5JLaO6g6ZjA PPT9pakDSkFLT/dPhzjsfLdNHl5LuKU3VAUyy/u9lw/T11sIsrSvFzfR6dNYPgXE81fz DP1tAGfgemUqm5zRHuufnVJGhN78hdwnlsGksBCyfrL+Pehpu6rG8n1/BsaBqcUvo452 LiDXyGt2DQo2ztXIbI6G/5aUaM6jF2FV8ROo90dCcQ5bKgrAP9v3hxFSVBvjM56IH2MR KuRjUOP/Hw7wWnnp9Wos9kB+sQfDMzYAM68Mc0fWw3MeuXrhlH2MBL0zEnKAw7GATYSW H2Lg== X-Gm-Message-State: AOAM530mVTJfwLlHIkV+RsQ6kjm4t2Zqk4mvpDz0I341IMbLF/QNXgoC yfVWJi0TokqAcg47OL5xcDhP0yF2 X-Google-Smtp-Source: ABdhPJxZWwtI1VWGA2bI/sIxwSM18fV8xYI9o0VHO1GoQTIcNcoaSh2TF89Ru84MNzQbWoOn4WM8TQ== X-Received: by 2002:a17:902:44e:: with SMTP id 72mr16381014ple.301.1589867239358; Mon, 18 May 2020 22:47:19 -0700 (PDT) Received: from 192-168-1-12.tpgi.com.au ([203.221.252.191]) by smtp.gmail.com with ESMTPSA id p12sm2798358pgj.22.2020.05.18.22.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 22:47:19 -0700 (PDT) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Tue, 19 May 2020 15:46:29 +1000 Message-Id: <20200519054633.113238-9-oohall@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200519054633.113238-1-oohall@gmail.com> References: <20200519054633.113238-1-oohall@gmail.com> MIME-Version: 1.0 Subject: [Skiboot] [RFC PATCH 08/12] core/console: Drop has_wrapped X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This same information is tracked in struct memcons so use that instead. Signed-off-by: Oliver O'Halloran --- core/console.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/console.c b/core/console.c index e18c4c3213bb..34944de4f310 100644 --- a/core/console.c +++ b/core/console.c @@ -23,7 +23,6 @@ static char *con_buf = (char *)INMEM_CON_START; * out to the console which is what flush_head is for. */ static size_t flush_head; -static bool con_wrapped; /* Internal console driver ops */ static struct con_ops *con_driver; @@ -197,7 +196,7 @@ static void inmem_write(char c) memcons.obuf[memcons.out_pos++] = c; if (memcons.out_pos >= INMEM_CON_OUT_LEN) { memcons.out_pos = 0; - con_wrapped = true; + memcons.has_wrapped = true; } /* @@ -208,7 +207,7 @@ static void inmem_write(char c) * out_pos */ opos = memcons.out_pos; - if (con_wrapped) + if (memcons.has_wrapped) opos |= MEMCONS_OUT_POS_WRAP; lwsync(); memcons.desc->out_pos = cpu_to_be32(opos);