Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2199548imu; Thu, 29 Nov 2018 00:47:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/VHrOwuQry70VpgRaVbdEElqCEwkNi9N82uKMY4nWqNW5niuU4JfvrrIjeDXp3aIwZaQDn5 X-Received: by 2002:a17:902:c05:: with SMTP id 5mr591297pls.155.1543481244465; Thu, 29 Nov 2018 00:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543481244; cv=none; d=google.com; s=arc-20160816; b=r6lTdCZVmVT54mibvdDi6R9HqTbQRBFSQ95WeL6ONK/XZwNBXcJyC0osSjIwZmYgTR mT1WS5G+dzjiuox6M2MbCUkAzCKerv6KsY0He46Om/qO6wh2vqWaXVHhp2A5diVrzuaL B5FlUxP32a8hm0QOFp+/I1lVj7pIKHHj/NeyNEp6DiffUQBRBlhukaHgpvLGVSoEzdwu kQVoLafUI/ogoljhs6KsbLDkAW4YtqOW7tdKay3D37NIyzjfNNT7Vd96bwVX+9HceBgs uRQfNDGLuMAzwjIWRiA/tXVczPETrFco7WVHbn1XmMxyYH1VHNuMlIBpG3cgu6u0sA96 vq8w== 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=ebvja7ppkTsEwfDofOxrBD+NfckjZ0iQFP4vJ8R1TQI=; b=TT5Q/IqgRqAbaEbzIUGLNlJZSCXy5oKyv6TJl9usTNfp3Y+QYAGLAxkwWCHcbVtN9N TODHxxcT06ZWFJjAliSvUmj7lqxkmvRY6UrzQdg1EaVR+frJcIDWOkbJDqHr9LQA8zvY HwrggGCEemoO+pJkPvw2Q3XXxAqzKgSpbnbkJz+EGypbeviTuSE0NdzBElN528dgwZXo j/+q1r3BsCzAdwdq9QIuGxEo/Yt6ldwIXCb4Wr8mIFNiLhtNwvOELvXDIsmKCY0OrPnx d4iWp0nTVA0UvQCsQZjLRyFJHfDQqXiWxVsDkj/UUv6rvG/phBWTgnY71xooGVqevyTH ZxIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I6KuxEJc; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w189si1484718pfb.151.2018.11.29.00.47.09; Thu, 29 Nov 2018 00:47:24 -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=@linaro.org header.s=google header.b=I6KuxEJc; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727861AbeK2TtW (ORCPT + 99 others); Thu, 29 Nov 2018 14:49:22 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38079 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeK2TtW (ORCPT ); Thu, 29 Nov 2018 14:49:22 -0500 Received: by mail-pf1-f196.google.com with SMTP id q1so676020pfi.5 for ; Thu, 29 Nov 2018 00:44: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=I6KuxEJcuwNeGPJjY2lgWumxqYUkkEh7Fg7DnYJSet12289NwLHveMP3NpcO0poyib Zbkyfcr7pFzlM6c/mE76P+hFFogxGE/ec8bXGHT80Z8kSg6XjQP/Se6VmnBd+sfvzEuZ f0NU/Of0dT3Kr0AtWM3/BgDGCdnVL7G7WjRl0= 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=ZWv1dOxo0eeNsTpyvwQ4vfBfWobjC365pXYbukLPhzH5Kgl9lcolsfPPBayk/2h1pT BKskXEoRZ7o9ImwutuBSuDmXFqj2bN71mNwETLbjc2Inn/yJd36pojjb05fNIeK5liew NsRpedKBTriOTsBE1g8ZprkDCvHSdpvXNU7aXrv24sJ1J+jKfM0csi9cZio5A5M4JrqL tSVzyxtgBwGzIj3fHRU5pWNHiB115xCetJy1zw7zi2J13fyBNul6B876YmxS8vsIvJDn 7Mfvh/Ao0JpxpKrkePyEusxn8RL9FfZSFbS1uz7KJztEItrtMzGFLzMdjasCcUV0vzfp 3thg== X-Gm-Message-State: AA+aEWaF5rOPAYPwvpixrlRALDe+PB7CsCAMCz87I3y5J59y2Pe2epWA 6o2rHqnZnApbnsBR+oaDop4ghw== X-Received: by 2002:a63:2406:: with SMTP id k6mr455347pgk.229.1543481085000; Thu, 29 Nov 2018 00:44:45 -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 73-v6sm2322683pfl.142.2018.11.29.00.44.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Nov 2018 00:44:44 -0800 (PST) From: Firoz Khan To: linux-mips@linux-mips.org, Ralf Baechle , Paul Burton , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v3 4/6] mips: remove syscall table entries Date: Thu, 29 Nov 2018 14:13:34 +0530 Message-Id: <1543481016-18500-5-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.9.1