Received: by 10.192.165.148 with SMTP id m20csp991941imm; Sat, 5 May 2018 02:29:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmCQ3N9+Y1tivST9li6fg2bexhM7PnvkMkBuH0TYoAR2f2/7RTdrnqR7KHTKKA7NmaQw/0 X-Received: by 2002:a17:902:7e4a:: with SMTP id a10-v6mr31347039pln.276.1525512586546; Sat, 05 May 2018 02:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525512586; cv=none; d=google.com; s=arc-20160816; b=wTuOOQ5TjJazMde0VPFgQqjEP5auWpGnKzTKj2TsvuYcpr8LZPs/e87+n9/zYe7+GY Apkgf2ZmZZSJjW7x6u6XdDzWij8EdeKsrhmtIUeA0n7iEc5/A1SuxbkLCn/SAEkQXcjS /XSE877G6sibdaewbQavL+OYrrlwlfTpN475kwkN7K94WdqGVOFkNyivgzVzYPIUaMWF nmhsVFpk6sAqadWZH0Fb57o/7YLO05IKA3tuIG8Q5TYu39TYxd+oJrW7YhAVnHmRcsDL ce+kuPNsJhgR1V4nq0NpNjlTwADHp3Id3Oept3EIZM4Wgn/mWAYiN/sxyZ7U26IpE0dt D3Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=rqWX1vGengpg0tB8djdsSG1dYnEjHARCOHZqRgB2gqI=; b=WTNXJ3atDHyZjyydbYu/5XXmbOYVU8GkVRskdLgUBcu8ZM6dnys8UTcjpMGPYyObJy ep07YhwDrPr4YHp6R8d/ZeNEuyGyXaC3GmsAJ8hUexd4+JJoKmFyPECv5MSPD61Bi8dr Iz03kVtAvAY/ph3bJp8lGC1oudXhA/hcR2wuTlmp7zx8kHbvuoIrnnm8EIAmR9KE0zX/ cUECMBZaGdwyzoneCFbgTL2cEqeBI4oeNl18Dwxgy+ApP2DWBuBBe0FvdekAQbdCl8+a hu0av1+quN+oYefC43xqVy5wO7YRl2uheGeQ669m8DFYSJ8JQHWmJhIo5Y+e4LIgxAo9 oZ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=P7xUpPua; 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 m11-v6si9309814pls.497.2018.05.05.02.29.31; Sat, 05 May 2018 02:29:46 -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; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=P7xUpPua; 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 S1751822AbeEEJ3S (ORCPT + 99 others); Sat, 5 May 2018 05:29:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43124 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeEEJ3P (ORCPT ); Sat, 5 May 2018 05:29:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rqWX1vGengpg0tB8djdsSG1dYnEjHARCOHZqRgB2gqI=; b=P7xUpPuapdodEMGr1+Mte6LFk a9CGKrrW0wetQcMRudgOWE9OGQ4LT86gAWmi0b7cNRszkNJ5rjp3HZasGCaHgRywwcETzUwT1ErWG EPKsa5z/QTYwvholr1vPLY53Jd+RPCNrU/Woqzmh0jgTXlsi5FgNwpQOQ5WWzwyQ6VRyaKDgU8MWp LiENISHrI3mijarj01tLbTCgYUoOxBUXyTZ6n1G1ePioG/UPEoGuGvmasAkYbdIQyfoKP97pQPoWs I9bsaP1m6DXZ1RD4+wdH502MO/s1wEqEjgBo/IMAxTCVVYX5tYOiPCFqQiv97cfq0FNCO2D2w/ofM m8F/3MDBA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEtVB-0007oj-Cr; Sat, 05 May 2018 09:29:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DD93B2029FA13; Sat, 5 May 2018 11:29:11 +0200 (CEST) Date: Sat, 5 May 2018 11:29:11 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aryabinin@virtuozzo.com, boqun.feng@gmail.com, catalin.marinas@arm.com, dvyukov@google.com, will.deacon@arm.com Subject: Re: [PATCH] locking/atomics: Clean up the atomic.h maze of #defines Message-ID: <20180505092911.GC12217@hirez.programming.kicks-ass.net> References: <20180504173937.25300-1-mark.rutland@arm.com> <20180504173937.25300-2-mark.rutland@arm.com> <20180504180105.GS12217@hirez.programming.kicks-ass.net> <20180504180909.dnhfflibjwywnm4l@lakrids.cambridge.arm.com> <20180505081100.nsyrqrpzq2vd27bk@gmail.com> <20180505084721.GA32344@noisy.programming.kicks-ass.net> <20180505090903.ebsf5vosgwckxooy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180505090903.ebsf5vosgwckxooy@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 05, 2018 at 11:09:03AM +0200, Ingo Molnar wrote: > > > # ifndef atomic_fetch_dec_acquire > > > # define atomic_fetch_dec_acquire(...) __atomic_op_acquire(atomic_fetch_dec, __VA_ARGS__) > > > # endif > > > # ifndef atomic_fetch_dec_release > > > # define atomic_fetch_dec_release(...) __atomic_op_release(atomic_fetch_dec, __VA_ARGS__) > > > # endif > > > # ifndef atomic_fetch_dec > > > # define atomic_fetch_dec(...) __atomic_op_fence(atomic_fetch_dec, __VA_ARGS__) > > > # endif > > > #endif > > > > > > The new variant is readable at a glance, and the hierarchy of defines is very > > > obvious as well. > > > > It wraps and looks hideous in my normal setup. And I do detest that indent > > after # thing. > > You should use wider terminals if you take a look at such code - there's already > numerous areas of the kernel that are not readable on 80x25 terminals. > > _Please_ try the following experiment, for me: > > Enter the 21st century temporarily and widen two of your terminals from 80 cols to > 100 cols - it's only ~20% wider. Doesn't work that way. The only way I get more columns is if I shrink my font further. I work with tiles per monitor (left/right obv.) and use two columns per editor. This gets me a total of 4 columns. On my desktop that is slightly over 100 characters per column, on my laptop that is slightly below 100 -- mostly because I'm pixel limited on fontsize on that thing (FullHD sucks). If it wraps it wraps.