Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3082903ybl; Sun, 8 Dec 2019 07:01:06 -0800 (PST) X-Google-Smtp-Source: APXvYqya5FfdGCaEV0rX7LvZzAf1YAlKzwQiKjan28AtPa0TwnVI8lsQ+QB7HZ/7gNkx2YBva0wf X-Received: by 2002:aca:4911:: with SMTP id w17mr21188730oia.170.1575817266488; Sun, 08 Dec 2019 07:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575817266; cv=none; d=google.com; s=arc-20160816; b=uRBpy0Yu+0w2CmVj70u8ShvYCM+ikdKJv8CY/3ovyNvfMg0egenpaDP++EmVBtzj6p ZDAIfUzjApz+9jz7/H2sS1EBqZPpzKfRbY+eDZBeAIQpqZRd0/5g/AdNx1dEVOYuDhUn 7IppIcqQdHgKoO7+svRugXNvghHqZQI3IuAQKL54bkzFNBPXRcdSIZgrTdC5RNAxuQxA jaaCjUb0MRnA3XxEU/8yAsAe6beool0G+h36m+YxpcMut35/wIrjxmedbt8ybreeA8Fa VzyqhsFjRdU0V98uiubuMkaTEtALd2668sgUaKT2Rr41Il96CqxC9sy48sLOkyQXo58S bHoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=fKzoBp9egB0xDWcm6FwMwduq4D77QvZOR2gELPcgxXE=; b=NIT/J5Vh4dmrw7RUe7ntD9cVt4i6byB52KxDBXEC0ftSmjv4ZlRITfeQ/mkBl89Fhm U16mjsW7Wwq7smUh6yxNpuNOoOe/KH4wL3dJZ4hv1NpLG2rwp7cDgbtvGgHcoIK42e+X mK5QXXM8hfs83hI5wkpvjtarAtbKuJQXMrSpk7hOFJWFGpqwJ6evjhlFSYDC7u7LxqyC eRqiIhiFkHOp5I0ZnEPqL6/DZtAWK1HXWaty4DvNCABpx9ahQJjwndEV1dL8ncbT3Beg BtDUhgweKZZBPPWQ/0Sf+cmO2+A4ktcspDhnRCfOoqlgATSNRzTvoH+jlLquBaWAf1JZ Bp5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si11401384otr.255.2019.12.08.07.00.54; Sun, 08 Dec 2019 07:01:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfLHO7N (ORCPT + 99 others); Sun, 8 Dec 2019 09:59:13 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36907 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfLHO7M (ORCPT ); Sun, 8 Dec 2019 09:59:12 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1idy1D-0000eP-Lv; Sun, 08 Dec 2019 15:58:43 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 54F5D1C2892; Sun, 8 Dec 2019 15:58:35 +0100 (CET) Date: Sun, 08 Dec 2019 14:58:35 -0000 From: "tip-bot2 for Thomas Gleixner" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/urgent] sched/rt, powerpc: Use CONFIG_PREEMPTION Cc: Thomas Gleixner , Sebastian Andrzej Siewior , Michael Ellerman , Christophe Leroy , Linus Torvalds , Paul Mackerras , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, Ingo Molnar , x86 , LKML In-Reply-To: <20191024160458.vlnf3wlcyjl2ich7@linutronix.de> References: <20191024160458.vlnf3wlcyjl2ich7@linutronix.de> MIME-Version: 1.0 Message-ID: <157581711522.21853.9059237081859491021.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/urgent branch of tip: Commit-ID: fdc5569eaba997852e0bfb57d11af496e4c1fa9a Gitweb: https://git.kernel.org/tip/fdc5569eaba997852e0bfb57d11af496e4c1fa9a Author: Thomas Gleixner AuthorDate: Thu, 24 Oct 2019 18:04:58 +02:00 Committer: Ingo Molnar CommitterDate: Sun, 08 Dec 2019 14:37:32 +01:00 sched/rt, powerpc: Use CONFIG_PREEMPTION CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the entry code over to use CONFIG_PREEMPTION. [bigeasy: +Kconfig] Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Acked-by: Michael Ellerman Cc: Christophe Leroy Cc: Linus Torvalds Cc: Paul Mackerras Cc: Peter Zijlstra Cc: linuxppc-dev@lists.ozlabs.org Link: https://lore.kernel.org/r/20191024160458.vlnf3wlcyjl2ich7@linutronix.de Signed-off-by: Ingo Molnar --- arch/powerpc/Kconfig | 2 +- arch/powerpc/kernel/entry_32.S | 4 ++-- arch/powerpc/kernel/entry_64.S | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index e446bb5..c781170 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -106,7 +106,7 @@ config LOCKDEP_SUPPORT config GENERIC_LOCKBREAK bool default y - depends on SMP && PREEMPT + depends on SMP && PREEMPTION config GENERIC_HWEIGHT bool diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index d60908e..e1a4c39 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -897,7 +897,7 @@ resume_kernel: bne- 0b 1: -#ifdef CONFIG_PREEMPT +#ifdef CONFIG_PREEMPTION /* check current_thread_info->preempt_count */ lwz r0,TI_PREEMPT(r2) cmpwi 0,r0,0 /* if non-zero, just restore regs and return */ @@ -921,7 +921,7 @@ resume_kernel: */ bl trace_hardirqs_on #endif -#endif /* CONFIG_PREEMPT */ +#endif /* CONFIG_PREEMPTION */ restore_kuap: kuap_restore r1, r2, r9, r10, r0 diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 3fd3ef3..a9a1d3c 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -846,7 +846,7 @@ resume_kernel: bne- 0b 1: -#ifdef CONFIG_PREEMPT +#ifdef CONFIG_PREEMPTION /* Check if we need to preempt */ andi. r0,r4,_TIF_NEED_RESCHED beq+ restore @@ -877,7 +877,7 @@ resume_kernel: li r10,MSR_RI mtmsrd r10,1 /* Update machine state */ #endif /* CONFIG_PPC_BOOK3E */ -#endif /* CONFIG_PREEMPT */ +#endif /* CONFIG_PREEMPTION */ .globl fast_exc_return_irq fast_exc_return_irq: