Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758445AbbKSMlR (ORCPT ); Thu, 19 Nov 2015 07:41:17 -0500 Received: from mail1.bemta7.messagelabs.com ([216.82.254.104]:39069 "EHLO mail1.bemta7.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757512AbbKSMlQ (ORCPT ); Thu, 19 Nov 2015 07:41:16 -0500 X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-4.tower-96.messagelabs.com!1447936873!8531329!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Subject: Re: [PATCH] clocksource: Store reg field within struct clocksource To: Russell King - ARM Linux CC: Thomas Gleixner , Daniel Lezcano , LKML , Mans Rullgard , Viresh Kumar , Nicolas Pitre , Tony Lindgren , Sebastian Frias References: <564C8086.80804@sigmadesigns.com> <20151118172114.GS8644@n2100.arm.linux.org.uk> <20151119103645.GV8644@n2100.arm.linux.org.uk> <564DAAB2.6040706@sigmadesigns.com> <20151119112130.GY8644@n2100.arm.linux.org.uk> From: Marc Gonzalez Message-ID: <564DC368.2030104@sigmadesigns.com> Date: Thu, 19 Nov 2015 13:41:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 MIME-Version: 1.0 In-Reply-To: <20151119112130.GY8644@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.27.0.114] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 27 On 19/11/2015 12:21, Russell King wrote: > When I wrote the MMIO clocksource implementation, there was no > ____cacheline_aligned on struct clocksource, and the arrangement I came > to for the structure put the 'reg' and 'read' within the same cache line > (note that the MMIO clocksource pre-dates Thomas' rearrangement of struct > clocksource and the addition of the cache line alignment.) The original > layout did not have any padding gaps. For the record, I pointed out the chronology in a previous discussion. But Thomas didn't comment at the time :-( http://thread.gmane.org/gmane.linux.ports.arm.kernel/402968/focus=403604 Mason wrote: > Oh and while I have your attention ;-) I have alignment-related > questions about clocksource_mmio_init() (commit 442c8176d2) wrt > Thomas Gleixner's 369db4c952 patch. (I think the two patches > do not play nice.) Regards. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/