Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934006AbbKSKkP (ORCPT ); Thu, 19 Nov 2015 05:40:15 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:39762 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757608AbbKSKkN (ORCPT ); Thu, 19 Nov 2015 05:40:13 -0500 Date: Thu, 19 Nov 2015 10:40:00 +0000 From: Russell King - ARM Linux To: Thomas Gleixner Cc: Marc Gonzalez , Daniel Lezcano , LKML , Mans Rullgard , Viresh Kumar , Nicolas Pitre , Tony Lindgren , Sebastian Frias Subject: Re: [PATCH] clocksource: Store reg field within struct clocksource Message-ID: <20151119104000.GW8644@n2100.arm.linux.org.uk> References: <564C8086.80804@sigmadesigns.com> <20151118172114.GS8644@n2100.arm.linux.org.uk> <564D9605.4010207@sigmadesigns.com> <20151119103354.GU8644@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1157 Lines: 25 On Thu, Nov 19, 2015 at 11:36:53AM +0100, Thomas Gleixner wrote: > On Thu, 19 Nov 2015, Russell King - ARM Linux wrote: > > Maybe the ____cacheline_aligned is inappropriate then, because it means > > any wrapping of struct clocksource has exactly the same problem. > > We could do that, but that does not necessarily solve the cache > footprint issue. Aside of that we'd need to add ____cacheline_aligned > to quite some of the statically allocated clocksource declarations. Sorry, but it does solve the cache footprint issue, because it would have the effect of moving 'reg' right into the same cache line as the 'read' pointer. Yes, we'd need ____cacheline_aligned at the static declarations, but surely that's better than constantly having to stuff implementation specific data into struct clocksource. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- 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/