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: 152991 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10126200ljp; Wed, 5 Dec 2018 21:19:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpuppZrakl8+0qxUGNnwTPZ6h5YfbYYSJs/oUmrKlovD3tHvk1aqEG9yy0wvtPpeGsJe/d X-Received: by 2002:a17:902:a03:: with SMTP id 3mr27170591plo.112.1544073588321; Wed, 05 Dec 2018 21:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544073588; cv=none; d=google.com; s=arc-20160816; b=dafaLgnVWxivcKX/jYJVGtGfIUFrVVFDPhuNBh1nYXoxfDMZKWHu5KKCzbRUtakA+e ZVoSuVmylbv+OHAfkvPcRkeXuYYlSe/j2UdW6Ji7hPyrJV64thQGQwNBRB0/nvkP1YAJ sKPLr2RW8nFtI0MpwO96+fI9cGd1nuxjDc/kUgHDHnL6odjcH9dSYHTFim52RlKRGMBR C3liayroy1r3mubqvpLGIunhoHCXy8k7Z7ZRi+FpI1ievD28EnGUAreYI4nGGN/oU4ip czO/gTbiOIgECEpiikeXZ3GpHM4+a+Jki7dKHihsI946LersvflktP2xD3t2yrwK7a1M 5Uig== 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=EkhaUL5orNBRZJGIs/jjsTNHR6aXKRQEC4dEuf8+S1bAzDBN0/EkOisrv/ZcsghY1E kEMr6OdIoFgbuqjj8ztdx35PM325xC9p6SrSS1bkqTZBuddSpTAt29pgGtgjmfHc/6H6 vUxTrdh9ng6McCwKnJ5G+cLuONxiONja1J6A9paVTe9zo3K3vuJKTWX2Q29lcauMFYOb xZhOwQym2CYX5DEh5KGlN7jXL67pJy4ZHo3/K5SGo4YztNQ2/GvNmOMeWzS3uXsxu0yG 5qLBmq2IaOLtfaliruYqetWNgigFOcrg53lqcIdf6k5yGuaRt5f4vLrZSdSxVmfK6Tbl mbQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0hU0xHb; 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 s8si20889054plq.345.2018.12.05.21.19.48; Wed, 05 Dec 2018 21:19: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=S0hU0xHb; 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 S1729124AbeLFFTr (ORCPT + 31 others); Thu, 6 Dec 2018 00:19:47 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45238 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728546AbeLFFTp (ORCPT ); Thu, 6 Dec 2018 00:19:45 -0500 Received: by mail-pf1-f195.google.com with SMTP id g62so11179494pfd.12 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=Gsk4oXcVcuGNSCLoxk5qVED63LoIlaRYeVGLslOBO31KZx4K/QxCGXwan71PCJDHOZ ERGNmLrl9Ps+h790WH3K10sjux0HJoBTxMViSZUTfbo/55hCj7Gw0QXj5MaXoe7fR6mf bOhJ3rYBtydQeSlI1s//E3dPvPComAJQNMKj/4vCebEZ25dZOfItcK6uet6jDSwckH6e okaNQmwekYfTuF3kqWKghZzwRonO+jJopp+5cqextV4glA96I7sm72oWhJ3XDeEGP4v5 zIeqg3ikMbOo0Pfs0I28ey2qhQM6iRUwyhiBh3MgPvyggIDNnYWD65TuVpVUWbZloCIl xVjA== X-Gm-Message-State: AA+aEWatEE5BcmqOIxz2Y5i/LHmRSHx+329kTa6oEtKvFUQkCtnExWPl x2qAnvp2Vqn1D8qP18BHLWS1Kw== 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-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