Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp291072ybl; Wed, 22 Jan 2020 21:46:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwRRyHX0gT84ZBt9NN7DkJON30hD8N9dCdkyAUKRtql9Zn8pcAmVS7upVhe2+3HJAhSrSPi X-Received: by 2002:a9d:624e:: with SMTP id i14mr10308883otk.371.1579758373354; Wed, 22 Jan 2020 21:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579758373; cv=none; d=google.com; s=arc-20160816; b=0ZqQiU0rK7qD+knjOwsnmC3oxjdhq/ffhdblSWdl2i2aihdbtZ2YwQeIizxc8iz8Rg iQQfxW7AcSwUiv9tr+tBtUdzePoDNq9HVUpt0vt6wyAOa4olDvJXfeYlYbzTv8AKU/iR o/3wy+wosB2Kd3K+sfnpIh7HZHfhImLJVSe1m7eUNJfjOaho6pNgYpugD/7EbcMEnuDO ZuPSZi6RZLCpfaHX4+bCjkR5r98CCZTcMiAH0Qxg6fUuue2OSlkgF/jnOeRoYPovWClj EKvs37P0BqczRZL7MGppS7G3D986hDjpInidZSVmRFFXL2TSrA4xXhf+B+7w3Ywx4xIM PkCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eQFSVaPDWWaPdmtn/1E6R2bbXGcBvm7LU1/hWkgtmnw=; b=SJOrBcTXmy41WcwfOEWY7JL4TlYQFzun+qxDmXqckzHWGZHhU8aVzBV9B3CWa0y4Rr AKK9VPhpqZLFGLq5JnJuoZ6cyjrAjip0TQaFX3PARtvzryhVe2zM52lera0YoIgkCpMc NmXCLq1xo0ijjdpHJN1EN6QOlN5tnQSI6/v/tdgRhjaXTkv3qhb32BQxPxgJuzsLh+Ck Cy5EcrHKHY+5G19By1ZGSH4pG7d7i6a50LxV3VmmubQ0qIVq294qOSsYTkCuxp1CyFTT 5m7+0xubFb/+aH7HkSOzq4muIuRziXDMW7t0CJIUujdb8tziV8v1fuMp69E5y5RyfG5c 68iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="Dl9gZ/DJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si406306oih.24.2020.01.22.21.46.01; Wed, 22 Jan 2020 21:46:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="Dl9gZ/DJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbgAWFo7 (ORCPT + 99 others); Thu, 23 Jan 2020 00:44:59 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34882 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbgAWFo7 (ORCPT ); Thu, 23 Jan 2020 00:44:59 -0500 Received: by mail-wr1-f67.google.com with SMTP id g17so1697003wro.2 for ; Wed, 22 Jan 2020 21:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eQFSVaPDWWaPdmtn/1E6R2bbXGcBvm7LU1/hWkgtmnw=; b=Dl9gZ/DJ2AT3Xr/0RRA+Sbi3NK5lX+C8MO+aZhLy/zYhEKXK3+OILOcnsaxaWZsy2C LoxiyVtwZTA4NxUjH0q4ytf13LPxizT+eiZmnyv9IwJ32EFXc1eWAazN+9Xbjmw6JZvl XSXVv8yBmxD4tEc2h4jtwDBf8vMeoFJI5hprg1IElHZh0Cvr2Kw7mHDNHKY5z/oc84Fb 6pTS2P2vplQQdKQLJC5DiWiTjAdBwdow9wCdYplVq0TcXR87xhjJAoKz569QLYvExuaB aFxdh4XOTH7jHVeJ0KXHU1cfvuQF9N02WXsVKo+qUfKnWRfBXvhh4ma03KSZA2poBlEi PtzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eQFSVaPDWWaPdmtn/1E6R2bbXGcBvm7LU1/hWkgtmnw=; b=tTSN2GIh0lMdXFnf+P9TU8fslAc9XnxRCnubmbrUtJYblakx3oEHhLMKPmJFVnYb2c EqmfY2w/F72eKqVURNaMrGtDxLTjeRcAZakcl05rs3TMXkYTEO5fC/Z+WnRRmQV4tmK6 /cKsXT5MXeuq1M/G/g2kx1JIcuU0Ufxhc2D9hk2mtrW+6wCZFOR/70bLCrRB19nBornV raTLjrEAZApDnaKJAz9UuXDXYITq9V06cp2OrhXxdZ7mf1JdIGnU0CL60s/hX9AqoC0K l/bqjcdefB+cOQ0OxiCCBikdtwYf/pnLLWZ8wjtHAiYzwUtl0qh2yvII6ydXQTmNqIZ+ N1ug== X-Gm-Message-State: APjAAAXr5HiFp8x/ura3jwCTG2GXVLhz6NQqM8ZuMjOqvecq/hR2cjTF ul/SF/fwMhM7PsqR2e3QAS4kimiymll1Lc5Sp8MqRg== X-Received: by 2002:a5d:620b:: with SMTP id y11mr15177157wru.230.1579758297609; Wed, 22 Jan 2020 21:44:57 -0800 (PST) MIME-Version: 1.0 References: <20200116143029.31441-1-guoren@kernel.org> <20200116143029.31441-2-guoren@kernel.org> In-Reply-To: <20200116143029.31441-2-guoren@kernel.org> From: Anup Patel Date: Thu, 23 Jan 2020 11:14:46 +0530 Message-ID: Subject: Re: [PATCH V2 2/4] riscv: Rename __switch_to_aux -> fpu To: Guo Ren Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Vincent Chen , Zong Li , Greentime Hu , Bin Meng , Atish Patra , Andreas Schwab , "linux-kernel@vger.kernel.org List" , linux-arch@vger.kernel.org, Arnd Bergmann , linux-csky@vger.kernel.org, linux-riscv , Guo Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 8:01 PM wrote: > > From: Guo Ren > > The name of __switch_to_aux is not clear and rename it with the > determine function: __switch_to_fpu. Next we could add other regs' > switch. > > Signed-off-by: Guo Ren > Cc: Anup Patel > --- > arch/riscv/include/asm/switch_to.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/include/asm/switch_to.h b/arch/riscv/include/asm/switch_to.h > index 407bcc96a710..b9234e7178d0 100644 > --- a/arch/riscv/include/asm/switch_to.h > +++ b/arch/riscv/include/asm/switch_to.h > @@ -44,7 +44,7 @@ static inline void fstate_restore(struct task_struct *task, > } > } > > -static inline void __switch_to_aux(struct task_struct *prev, > +static inline void __switch_to_fpu(struct task_struct *prev, > struct task_struct *next) > { > struct pt_regs *regs; > @@ -60,7 +60,7 @@ extern bool has_fpu; > #define has_fpu false > #define fstate_save(task, regs) do { } while (0) > #define fstate_restore(task, regs) do { } while (0) > -#define __switch_to_aux(__prev, __next) do { } while (0) > +#define __switch_to_fpu(__prev, __next) do { } while (0) > #endif > > extern struct task_struct *__switch_to(struct task_struct *, > @@ -71,7 +71,7 @@ do { \ > struct task_struct *__prev = (prev); \ > struct task_struct *__next = (next); \ > if (has_fpu) \ > - __switch_to_aux(__prev, __next); \ > + __switch_to_fpu(__prev, __next); \ > ((last) = __switch_to(__prev, __next)); \ > } while (0) > > -- > 2.17.0 > LGTM. Reviewed-by: Anup Patel Regards, Anup