From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbcFQXYO (ORCPT ); Fri, 17 Jun 2016 19:24:14 -0400 Received: from gate.crashing.org ([63.228.1.57]:33551 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbcFQXYN (ORCPT ); Fri, 17 Jun 2016 19:24:13 -0400 Message-ID: <1466205799.24271.84.camel@kernel.crashing.org> Subject: Re: [off-list] a path toward killing thread_info From: Benjamin Herrenschmidt To: "H. Peter Anvin" , Al Viro , Andy Lutomirski Cc: Kees Cook , Peter Zijlstra , "linux-kernel@vger.kernel.org" , Ingo Molnar Date: Sat, 18 Jun 2016 09:23:19 +1000 In-Reply-To: <4CCEB83C-FBCF-4095-8770-892387438060@zytor.com> References: <20160617230431.GG14480@ZenIV.linux.org.uk> <4CCEB83C-FBCF-4095-8770-892387438060@zytor.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.3 (3.20.3-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-06-17 at 16:10 -0700, H. Peter Anvin wrote: >  > Yes. > > I did a half-finished patchset to do this once, in that I defined > accessor functions which used container_of instead of pointers on > architectures where this merge was enabled. How do you get to "current" in that case ? A normal per-cpu ? Cheers, Ben.