From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 03 Aug 2015 18:05:56 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:36016 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S27012132AbbHCQFwpcIr4 (ORCPT ); Mon, 3 Aug 2015 18:05:52 +0200 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.15.1/8.14.8) with ESMTP id t73G5o7t008934; Mon, 3 Aug 2015 18:05:50 +0200 Received: (from ralf@localhost) by scotty.linux-mips.net (8.15.1/8.15.1/Submit) id t73G5ndL008933; Mon, 3 Aug 2015 18:05:49 +0200 Date: Mon, 3 Aug 2015 18:05:49 +0200 From: Ralf Baechle To: Paul Burton Cc: linux-mips@linux-mips.org, Leonid Yegoshin , "Maciej W. Rozycki" , linux-kernel@vger.kernel.org, James Hogan , Markos Chandras , Manuel Lauss Subject: Re: [PATCH v3] MIPS: tidy up FPU context switching Message-ID: <20150803160548.GF2843@linux-mips.org> References: <1438616970-24652-1-git-send-email-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438616970-24652-1-git-send-email-paul.burton@imgtec.com> User-Agent: Mutt/1.5.23 (2014-03-12) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 48550 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Mon, Aug 03, 2015 at 08:49:30AM -0700, Paul Burton wrote: > Rather than saving the scalar FP or vector context in the assembly > resume function, reuse the existing C code we have in fpu.h to do > exactly that. This reduces duplication, results in a much easier to read > resume function & should allow the compiler to optimise out more MSA > code due to is_msa_enabled()/cpu_has_msa being known-zero at compile > time for kernels without MSA support. > > Signed-off-by: Paul Burton Thanks, applied. Ralf