Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdHXIto (ORCPT ); Thu, 24 Aug 2017 04:49:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48678 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbdHXItk (ORCPT ); Thu, 24 Aug 2017 04:49:40 -0400 Date: Thu, 24 Aug 2017 10:49:06 +0200 From: Peter Zijlstra To: Hoeun Ryu Cc: Kees Cook , Andrew Morton , Nicholas Piggin , Ingo Molnar , Michal Marek , Laura Abbott , Al Viro , Andy Lutomirski , mic@digikod.net, Russell King , Vladimir Murzin , Heiko Carstens , Jonathan Austin , Masahiro Yamada , Mark Rutland , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org Subject: Re: [RFC 3/3] sched: depend on 64BIT_ATOMIC_ACCESS to determine if to use min_vruntime_copy Message-ID: <20170824084906.mtmj6rz4igo63dl5@hirez.programming.kicks-ass.net> References: <1503553377-3646-1-git-send-email-hoeun.ryu@gmail.com> <1503553377-3646-4-git-send-email-hoeun.ryu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503553377-3646-4-git-send-email-hoeun.ryu@gmail.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 484 Lines: 13 On Thu, Aug 24, 2017 at 02:42:57PM +0900, Hoeun Ryu wrote: > +#ifndef CONFIG_64BIT_ATOMIC_ALIGNED_ACCESS > u64 min_vruntime; > -#ifndef CONFIG_64BIT > +#else > + u64 min_vruntime __attribute__((aligned(sizeof(u64)))); > +#endif That's stupid, just make sure your platform defines u64 as naturally aligned when you have this 64BIT_ATOMIC foo. Also, please try and dig out more 32bit archs that can use this and make sure to include performance numbers to justify this extra cruft.