From patchwork Thu Nov 29 08:43:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 152380 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2115406ljp; Thu, 29 Nov 2018 00:44:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/V1D2XZwVhmv0J7dcFO6OiU3cC8Wa4KHU3r6YkAiUwRe+5OhdEM2H/HyWyS5DogtlXx0NBP X-Received: by 2002:a65:448a:: with SMTP id l10mr467859pgq.387.1543481088107; Thu, 29 Nov 2018 00:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543481088; cv=none; d=google.com; s=arc-20160816; b=IrNX8x2sf0TH/0q9065z5IAxRzwTBk07UlST5NgxA2YmqkTRV2wm+8dDvJmjBTbJ5G ZQ3FFY6CRsRXwBC0hH58mki9RUCCT0tZUw+giNicxr5f44+wd/x4bzOGI2UW8Jo5dRqx X46qJ8aKA/CglNhgohEC5MAVjJnm8VVd+1Dpvj/G4vLhl7aZFcaNwRKQ8SH0ON4J7gXc x3glPVZpN6j6GhVJiCsSMfJyIby5dsB2sQx7nj6Wq8Evo/TtFY5v0QqGdtP/DmIYtJAq qfagne6X3JNasP/kCG6Mz/0QWLw9Rr2mBGMyqecYpEG+cO3t6QcdVWzal59owS3SNKBd /f0Q== 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 14si1203453pgx.178.2018.11.29.00.44.47; Thu, 29 Nov 2018 00:44:48 -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 S1727877AbeK2TtW (ORCPT + 32 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(-) -- 1.9.1 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