From patchwork Thu Nov 15 06:14:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 151190 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6611262ljp; Wed, 14 Nov 2018 22:15:08 -0800 (PST) X-Google-Smtp-Source: AJdET5cX04WpmYUglSlh+5OUdteLFxQ+P61woVbaP3TI/V+CwbUsQ4dqY3fI/k4iuRJmmOIIH5OE X-Received: by 2002:a17:902:d890:: with SMTP id b16-v6mr4856002plz.207.1542262508116; Wed, 14 Nov 2018 22:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542262508; cv=none; d=google.com; s=arc-20160816; b=0xT0F09ioUK/DyyGOI+XJ5DdngczBo3GDPjLf8p0YpSy/YjzbUU25Zi6QF4rmM2qJS UqgGXQltihEO2OQGvH3Fd3vVeBdfjeKnxtG1B1vzs47ExImP7znotHKEuySL31VjV0yA miX/opBkgR7Pq5L0m3Mltz3qzTzILGRVyECrxvpSfMIeBZzo8eL/w+feNIHRvmEM9yMp tGHjqaNQFcTa7R8xynsSzq6x2u+c3LAxd3hcT/7p0jZNeibd0jA9kmCXbmeJFXM26dBB JJsMIwpyhf5KgEWVgYO5BEuZdvgb3CFBY+ZHqt9eRo2BjgnIAjDX6DdxvSJncgqEi+Dw tnXg== 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=PjaOx8k9Y2ORMGO8iIOrEj6UmDS2qPyKnJpoXrQYYCQ=; b=dw39fxG+ATpAr/2iCuGzlkfXV19FmPPl7foL+kpiLEbrd3fYbn5NjUtF9WL9H1+GGj AO1lCeq0nV5IsDYxuFFMc5pti5jPlgR5Y4Oj1N6MO5ujhFZUICnNgIPb0LzAFkqY+V+c TrxfWs7o45f/mVOeM8w5s0IqD9/Sf6G2qD+OkqCGfpdjXUNgtFxOisPxMOSmNWSxOGYy Ecaxrettgtj7bet0Y3ARHnyVI9u2cHSLCIox0wAAvEWVS84a9RKBaL7+v9DT1oic/TFE ZieM/s3KeoQ8I5txs+4KK2dLEkLo6LTNvPsCZKwMEMptZ9lVD+tEVvYSfKMT0byqDhJZ JulA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LkMeJ5kS; 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 f11-v6si26309923plo.199.2018.11.14.22.15.07; Wed, 14 Nov 2018 22:15:08 -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=LkMeJ5kS; 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 S1728765AbeKOQVf (ORCPT + 32 others); Thu, 15 Nov 2018 11:21:35 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40545 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728468AbeKOQVe (ORCPT ); Thu, 15 Nov 2018 11:21:34 -0500 Received: by mail-pl1-f196.google.com with SMTP id b22-v6so3526021pls.7 for ; Wed, 14 Nov 2018 22:15:06 -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=PjaOx8k9Y2ORMGO8iIOrEj6UmDS2qPyKnJpoXrQYYCQ=; b=LkMeJ5kSK/Ntm3L9XDop5dxfTgCamiEZsmlEegOT40zbn4F3orX+v+HeSVTrewE7bs j7v4LnKSpAKH3XJ0nX5E7EQPh5BZ0cq2pYJ85sxYZuHxyv2Qpyi7J+exnM4gJnOlzNB1 BZBsAqk8JDGQhxPHhPXsck5n52CpflvXU801o= 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=PjaOx8k9Y2ORMGO8iIOrEj6UmDS2qPyKnJpoXrQYYCQ=; b=dImUYISpavGwfRKM49dYSAOeRNl59mxfTDjE+bE7X4+pB10X76wNdD59fPEwFrJnqM vEAl/rD6KGqGRqV2PpvFtTbLlmI4/srAnkYVGZlyyhYhfG7xbU7qu9R9MUhuWjkyV+jz mocXSMXx6a8+CMGNPD0ZtXiOmgf/1ICUg7u/YJDif7NxSobiNkqYJpuBZ8Qrg/lTXhko QnAnBHuPyTNMVo8CCA5CvL0GXLDzfcFMNE6vJY2bF/uKdb7RBHnr4gNdk2WmDTSoBroD bcWNiKl3RddkbhIk0DCtDVDXz3bt+0DbZ4bTZX6MrK0Yt6LvFMIgg48r2kcFvgPN+9jK +jWg== X-Gm-Message-State: AGRZ1gJftXZi3jBeVHKah/bZRqRkUgTC/zGuHH9VOMgBjjYPbRST16+b 018Bqk7LaHL+dLIk/teutXB5uA== X-Received: by 2002:a17:902:5a2:: with SMTP id f31-v6mr4925440plf.320.1542262506014; Wed, 14 Nov 2018 22:15:06 -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 34sm39861931pgp.90.2018.11.14.22.15.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 22:15:05 -0800 (PST) From: Firoz Khan To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org, Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , Kate Stewart Cc: Arnd Bergmann , y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v2 3/5] mips: remove syscall table entries Date: Thu, 15 Nov 2018 11:44:19 +0530 Message-Id: <1542262461-29024-4-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542262461-29024-1-git-send-email-firoz.khan@linaro.org> References: <1542262461-29024-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 a9b895f..4eee437 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S @@ -208,6 +208,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 mipsmt_sys_sched_setaffinity sys_sched_setaffinity +#define mipsmt_sys_sched_getaffinity sys_sched_getaffinity +#endif /* CONFIG_MIPS_MT_FPAFF */ + .align 2 .type sys_call_table, @object EXPORT(sys_call_table) @@ -450,20 +462,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