Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7842671ybl; Thu, 16 Jan 2020 06:32:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzOUAx+E1BVEj7TNIJZqYWqa7MqfGa2bmEXYnEYbAaFuUGof0UC7zpgF5kYIH4qlSe+jhr7 X-Received: by 2002:a9d:53c2:: with SMTP id i2mr2043652oth.43.1579185146056; Thu, 16 Jan 2020 06:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579185146; cv=none; d=google.com; s=arc-20160816; b=Js/mp5K5tjmMqsS14Uxd0DkLmrkLo2qIvmN0Vy5dVVJi1InthQ/AX2Wku0mGGsBqK6 n+h0a6rAgDvzpAViWuQ5v6P1Fj18UHe0DzB39qsepd/lp2ymfk16knntZ1zkTt272oMz ZRgu5tma+fpY9I7hRFt4xtElbvdwUQjTACc38tkPGii0JHLcRUsHQ8Y8RXp+HR+oi0so xOFrV71cqbNS1wMGj6dSMWqrlK246L3QirNjdkdQ3u7jN+t3O9K5UkUxGtnyWQ2cCnto WLbq/QaBlBYNlE/dVv8BnwHLaNalJ/udqGgCaWTuydA5+ozpoCkyeOfzuyZLOR7iJ4aG tDtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=YVB9wp0UsR/hToLLxaFe0nIAOjgq0lqH4GB7GYZ4uas=; b=ndVJGVE+km9V73q2DVXq4aJZf0z7a9VpGMrAhLw9NTR4WcrIPkGaZHL2cLR2lzGZd4 BVWkwUDxxw1zBg1zmDXzWV6cjiqHzONBqD6Rraq99Fc9r1p6eeK+hPw5fZEaTwceFB3J fSmQfDgvj0CxY8O2bgWRVl3mO9cvzXQ0kM8I4hBKTn9IhhXs/TJ2eElOgvz+5dnt7zSF hzf1pqYTBiwXTMCPYKAK/yMR3XxMogooSZ6BZgMrkLiblCKQAt3l5IBvNnkfj1M+CdWc V9xwgVF1jKWtKXtihif8fSmnInbnE9gQIPfdzjNhFYnEvKPd3/o/Ao2vyZUzLw3lDuG0 58BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qjn8wqBW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si11667603oib.61.2020.01.16.06.32.12; Thu, 16 Jan 2020 06:32:26 -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=@kernel.org header.s=default header.b=Qjn8wqBW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbgAPObH (ORCPT + 99 others); Thu, 16 Jan 2020 09:31:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:54994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbgAPObH (ORCPT ); Thu, 16 Jan 2020 09:31:07 -0500 Received: from localhost.localdomain (unknown [223.93.147.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4158F214AF; Thu, 16 Jan 2020 14:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579185066; bh=RjL5HdLG7civsy73fTv4k4f+R0TSQwtrPFMWF4g32q8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qjn8wqBWj2L6b2sJheZhnC5CIgvBnl8BKi3UBDtiDWXt1ZfPJq/gsR7DeCyZ41tZ1 qEqyZ5PuGI/IESC/3866525qRDmmGtmlCHjc8WaEs66TO48o3kqgACx93evEYrRcOG o4UhLhz0YM/1cx77nxX25GSN3PoAOgYyidbM0oMA= From: guoren@kernel.org To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, Anup.Patel@wdc.com, vincent.chen@sifive.com, zong.li@sifive.com, greentime.hu@sifive.com, bmeng.cn@gmail.com, atish.patra@wdc.com, schwab@linux-m68k.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Subject: [PATCH V2 2/4] riscv: Rename __switch_to_aux -> fpu Date: Thu, 16 Jan 2020 22:30:27 +0800 Message-Id: <20200116143029.31441-2-guoren@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20200116143029.31441-1-guoren@kernel.org> References: <20200116143029.31441-1-guoren@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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