From patchwork Thu Dec 6 05:18:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 10715263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0111F13BF for ; Thu, 6 Dec 2018 05:19:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E52942DA4E for ; Thu, 6 Dec 2018 05:19:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67EE2DA50; Thu, 6 Dec 2018 05:19:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9A332DA30 for ; Thu, 6 Dec 2018 05:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729109AbeLFFTq (ORCPT ); Thu, 6 Dec 2018 00:19:46 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38971 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729107AbeLFFTp (ORCPT ); Thu, 6 Dec 2018 00:19:45 -0500 Received: by mail-pg1-f193.google.com with SMTP id w6so10093912pgl.6 for ; Wed, 05 Dec 2018 21:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ebvja7ppkTsEwfDofOxrBD+NfckjZ0iQFP4vJ8R1TQI=; b=S0hU0xHbgmYjkcnmpr8H/uFNsV53MrH+wcTobHSy9TwpRErn9aS4Rmk06X1kL5+O4X WrImjxuCxrnBsYtDjVKJbyVFC2JrmFvhBceXpLHpe5cVZ4/cIF6cy9KWGtlCRYJlTHIe uHukn3NFm7Tofiy6gvPylQ59pR/KyvDNNelL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ebvja7ppkTsEwfDofOxrBD+NfckjZ0iQFP4vJ8R1TQI=; b=a3FzZsH7LbCDsDz/tnkTabQvv0BF+whxcEgPzUSE2J7STOzInY26umQYTkrRRcioeX +gdZ9rn3fTFYV+yhPMWzZtUVkhO4Z82fhtGmynOoVPJYjZ7GJAnj+u1zqfAnLIJX8H6s cruDW/Yj3iACCsw/5NpxshVniNiimF4p1avmmcmu6NKTrNP64OplSjHH+rD5Wbvm8ROH a82zCYnMUI1C7XYx4K1VY/ewwPCt7ZpiMeW5tHocBh5A/IuyWudnPzWUb9vEEmcoSS3w J5zXH+G6e7uv62X2XnPEntnaDyxJjxPliG8awMRspnlDjFjql4xIrbsh8v15qKQ02GFA SeRA== X-Gm-Message-State: AA+aEWbz5XTjCFy/iG5zE8yHFagfg40Vu8TULF6vMnQkZMoA2TVhDwpH XhH+JZNNw2ic/e2H4+fc2c1iYcBzpZM= X-Google-Smtp-Source: AFSGD/V+fPg3hkuovp+kem+e5GDbtY6iru5/hWYu6tuBJPR6hcPqk407lXtk+ip8SNRJT6KqXvCW6A== X-Received: by 2002:a63:680a:: with SMTP id d10mr23129623pgc.396.1544073584866; Wed, 05 Dec 2018 21:19:44 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id r66sm32877803pfk.157.2018.12.05.21.19.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Dec 2018 21:19:44 -0800 (PST) From: Firoz Khan To: linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v4 5/7] mips: remove syscall table entries Date: Thu, 6 Dec 2018 10:48:26 +0530 Message-Id: <1544073508-13720-6-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544073508-13720-1-git-send-email-firoz.khan@linaro.org> References: <1544073508-13720-1-git-send-email-firoz.khan@linaro.org> Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The config flag - CONFIG_MIPS_MT_FPAFF uses to check whether which syscall entries need to be used in scall32-o32.S file. One of the patch in this patch series will generate syscall table file. But CONFIG_MIPS_MT_FPAFF flag will add more complexity in the script to generate the syscall table file. In order to come up with a common implementation across all archit- ecture, we need to remove mipsmt_sys_sched_setaffinity and mipsmt- _sys_sched_getaffinity from the table and define it in other way. Signed-off-by: Firoz Khan --- arch/mips/kernel/scall32-o32.S | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 10f6367..43fa5cd 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S @@ -205,6 +205,18 @@ einval: li v0, -ENOSYS jr ra END(sys_syscall) +#ifdef CONFIG_MIPS_MT_FPAFF + /* + * For FPU affinity scheduling on MIPS MT processors, we need to + * intercept sys_sched_xxxaffinity() calls until we get a proper hook + * in kernel/sched/core.c. Considered only temporary we only support + * these hooks for the 32-bit kernel - there is no MIPS64 MT processor + * atm. + */ +#define sys_sched_setaffinity mipsmt_sys_sched_setaffinity +#define sys_sched_getaffinity mipsmt_sys_sched_getaffinity +#endif /* CONFIG_MIPS_MT_FPAFF */ + .align 2 .type sys_call_table, @object EXPORT(sys_call_table) @@ -447,20 +459,8 @@ EXPORT(sys_call_table) PTR sys_tkill PTR sys_sendfile64 PTR sys_futex -#ifdef CONFIG_MIPS_MT_FPAFF - /* - * For FPU affinity scheduling on MIPS MT processors, we need to - * intercept sys_sched_xxxaffinity() calls until we get a proper hook - * in kernel/sched/core.c. Considered only temporary we only support - * these hooks for the 32-bit kernel - there is no MIPS64 MT processor - * atm. - */ - PTR mipsmt_sys_sched_setaffinity - PTR mipsmt_sys_sched_getaffinity -#else PTR sys_sched_setaffinity PTR sys_sched_getaffinity /* 4240 */ -#endif /* CONFIG_MIPS_MT_FPAFF */ PTR sys_io_setup PTR sys_io_destroy PTR sys_io_getevents