From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756376AbcHVUyz (ORCPT ); Mon, 22 Aug 2016 16:54:55 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:33695 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756286AbcHVUyx (ORCPT ); Mon, 22 Aug 2016 16:54:53 -0400 Date: Mon, 22 Aug 2016 23:54:58 +0300 From: Alexey Dobriyan To: x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: branchless clear_page() Message-ID: <20160822205458.GA2862@p183.telecom.by> References: <20160822205229.GA2638@p183.telecom.by> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160822205229.GA2638@p183.telecom.by> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2016 at 11:52:29PM +0300, Alexey Dobriyan wrote: > Apply alternatives at the call site instead of function body. > Save branch per clean page. > > Bonus: tell gcc to not flush whole shebang of registers, > just RDI, RAX, RCX. Rename individual clear_page() functions closer to implementation details (_c_e suffix sucks).