Received: by 10.223.185.116 with SMTP id b49csp569843wrg; Wed, 14 Feb 2018 03:40:09 -0800 (PST) X-Google-Smtp-Source: AH8x225U2TcadOWYHAx4zD6KkjI89Mf6dEX4KL4OJwjQecDEm1RV6P+/3KjxldqXLDkqMTi3hHyc X-Received: by 10.98.37.198 with SMTP id l189mr591345pfl.103.1518608409013; Wed, 14 Feb 2018 03:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518608408; cv=none; d=google.com; s=arc-20160816; b=KkZy7aEn594nlVkKhmLox46/WCuNr7eJEeVgOG0b0o36DvgdAwNxs9Ej6ge9r0iSgU K62H0ZQHYqtheSodGer7ZSmMHYvEjnYTTj3K7CVpS3z03NrjFCZHfmQL8rIVbYP6tbOi MDQwgWxs0I0mo1JISO3OXoH6VJVWBUwhxkRdILINoirsJCvEFmgZMCLwTtNaNx5vgy8I 6NQwnvYpk05XY9V99BQmfW3sFmDa1CUOKm7VwQv12Dkplayx0voLauJVX/g6YxHLFZum wKMvmxP5cb8jHF9TrZ0GQIz7xKyznrHpg6RqimPuhhgT0s6+zaWEegjaG4bVzYrXoir1 Mzsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=DVWFSCZELKGE6kodgTnqjY1MQcT9utK6OKp6FvuHCY0=; b=yYGneZm9BFPW4r5y56TrEUd8YpKv2SrLsqp0Y5Eme0tbbqN2sNAjN0+Clu1KsMFav3 JEDVqJdsd0z3jh7Q5O4J/vqtoXN0LJ+Ae2a9bsLmhmcBlWVYAKl0BpJrkF2js8jr5ZXo 9AnJLLqOfIe0cjg+4olC6q/8ffWQumvsTSJQ253UCkdQyyEyQvKybKccMBPt5rnBeEAk MLqSGrO6XvRlbiLHpmKmCj46mUZTw0X6L4jvjbMIw8SKRDmGnbL4DN9QmHdR0STlPHd8 vLNhSTGnyVXR/WT4s2URxSPpCV7zGaVuFXlsYQowN42OFrHNt6+4oXMpIH9DrDtWhUXx wi/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si1471257plm.11.2018.02.14.03.39.54; Wed, 14 Feb 2018 03:40:08 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967462AbeBNLjT (ORCPT + 99 others); Wed, 14 Feb 2018 06:39:19 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:52423 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967342AbeBNLjR (ORCPT ); Wed, 14 Feb 2018 06:39:17 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1elvLm-0003Dx-Ud; Wed, 14 Feb 2018 12:35:47 +0100 Date: Wed, 14 Feb 2018 12:39:09 +0100 (CET) From: Thomas Gleixner To: Alan Cox cc: "Gustavo A. R. Silva" , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/microcode/intel: Use 64-bit arithmetic instead of 32-bit In-Reply-To: <20180213231847.36f87c0b@alans-desktop> Message-ID: References: <20180213164404.GA11664@embeddedor.com> <20180213231847.36f87c0b@alans-desktop> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Feb 2018, Alan Cox wrote: > > if (c->x86_cache_size >= 0) > > seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size); > > > > which is silly, because that really can be done with: > > > > if (c->x86_cache_size) > > > > as there is no point in printing 'cache size 0KB', which means > > x86_cache_size can be made unsigned int, which makes sense because cache > > size < 0 does not at all. > > Currently 0MB means "I know you have no cache" (early slot 1 celeron), > while not printing it means 'I have no clue' Cute. I hope the 3 slot1 celeron users will not go wild if their /proc/cpuinfo now claims to have no clue about caches. Thanks, tglx