From patchwork Thu Dec 13 09:07:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 153618 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp570929ljp; Thu, 13 Dec 2018 01:08:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/UI2alTAUl1We2J6oX10JMUZ7I+BSJ+nCyBr2Mz+77wpG/oh7ScE65aVCHrUFGdjbX00J50 X-Received: by 2002:a63:4745:: with SMTP id w5mr21622784pgk.377.1544692128076; Thu, 13 Dec 2018 01:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544692128; cv=none; d=google.com; s=arc-20160816; b=FgFto+2pmAXsoeyuJHrzuHJpa4vzuJHBLGiXLmJx/cxlloyPbtUyhUTueNWvCIZ+oZ fbo5M3fhIG4/fJSqsr8R6/6olct8rGC8HpjjMAKMMEVPtuI0Y5m55QD88zaSKl+UY3rj 3J01XNICRvob5LtZl7MIrivajDuNo9Mi3Vnk2BssqyKFS3MbwMzr6J2YY7N/HYFkgOy8 lGbvkbB0AxpA86IzGKdTrEaASfDLNI4hcIVCezDq+BjqqGEEbtoRRfUSCECvx40bCYv0 KTJ23VnDPcTBpkIEczl7S68exB/kPDNdBjwrJaCJL8DCNgoVNUBqyweaoDNF4LJXJbxW WHVA== 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=JEhFQIPLFhH4DCIFw/FWssUVdUarxbzBZuchiYm4hIY3B6+5+LCSEbO+dHjjxdWgzb A0AMNL0z+XBboKykCIfGAZflIlwazktXY8zhtHgA1IAEaBndLOkHJgwBSGFS4XyA90n4 UwBxAdnKf6dXt5SdClPNVcTd4rESMrAT7+DinP7ApJNsS+NCK/jr7izax+QXmX0AueGh LQfs/LgrVkVa5JPFWTnww8FokAc/RBh7UhkQ6+HyyTYP44jc/75RMMeXqixWxn4vWl4H bVG3APQVGppiphSzea9PQA96Od743tVUXSxamFrKZDyKuSIo7eRrn5SD6bQaysH6mdt3 z08g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h4lx10TU; 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 q14si1138778pgg.433.2018.12.13.01.08.47; Thu, 13 Dec 2018 01:08: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=h4lx10TU; 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 S1727885AbeLMJIq (ORCPT + 31 others); Thu, 13 Dec 2018 04:08:46 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38528 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbeLMJIp (ORCPT ); Thu, 13 Dec 2018 04:08:45 -0500 Received: by mail-pf1-f195.google.com with SMTP id q1so799751pfi.5 for ; Thu, 13 Dec 2018 01:08:44 -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=h4lx10TUdlrChEdu0MXS85znwBmk5v0MRQmTPnFhnmeFduQK02TziYBx2ZslzT28bV qjpVTOHxSApyY5r1bOFSlDndAKUkOrrc0SLr+TbBynGQRiuNbwZLsUCpOqPYMD7CF1Xf QBnjZIhUBZA4uZtE8H+D72PgUDBfEamx7j2eU= 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=tCs3MEhMD234iWt6KlwfLRVmkV3v9c6521C/iKTcpBMjIAGSgtGfRyCfxel/MNhqzM Tuuh3b//NMbKBxOlQeBc+YeeJmKPpQw3W4qZOZu2pKQLpQVfNw7DhuZYEg6CsRyVpic/ GW5CdanlFRTz9Z/QQPEkbmVIHIkfvyQBauGFKjnOgQ5ShgIweqwzzQl/zYQZuWyZXUDm yiHX/Lf7MDQrJvusZ6Q3M5/AarGIcT2nJcIAyjh1CBoggmivWFAeBtBNdO/T4EQ2+yDo W5NhrU72G5IC2sc0z11+52bjoyU9lagEWUzSwRUcQGFR5jmXTvjzbH5EVZL87zi7shq/ Gk6A== X-Gm-Message-State: AA+aEWYiXkUu9NCYxZwR1f4JaP76Ad9JK20L6uVkfbqVAkItdYRsR5A7 4PitfA41++fgYWKkEEHyOv+izQ== X-Received: by 2002:a63:de04:: with SMTP id f4mr20796162pgg.292.1544692124018; Thu, 13 Dec 2018 01:08: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 m11sm1650533pgh.51.2018.12.13.01.08.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Dec 2018 01:08:43 -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 v5 5/7] mips: remove syscall table entries Date: Thu, 13 Dec 2018 14:37:37 +0530 Message-Id: <1544692059-9728-6-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544692059-9728-1-git-send-email-firoz.khan@linaro.org> References: <1544692059-9728-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