Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3084255ybl; Sun, 8 Dec 2019 07:02:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxcsYYrpdfKKHc+Rg3PvN/PTY669SpFlvMpeHCTcrlX04X6vmahjm8qZSa++GgjAL3D8Bhj X-Received: by 2002:aca:ab95:: with SMTP id u143mr21093693oie.128.1575817341135; Sun, 08 Dec 2019 07:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575817341; cv=none; d=google.com; s=arc-20160816; b=Rlk6YFzQJlxMhElvqpH/WUdlLkUoosFr6gj6agAj9chFYgwmBNqbVgB+MKC5+JYpwj LCwDyr87S10s6IY7hCQ3mG8DKhx+oe17Af5I9WDX2AXJlWpuGwVW+wuq+KqYDjvcuC9+ S8YGYPXXOL4W+h5/GcKCw5Qn3vUd/hJUPOJUWfFInnyIKiirwdTDpcaKnelNE0ixwRPf eprFxaXX3CpD6jUcpwoV7BU1qw6Ltj6v5EHN5sH0T19Zwezpnqn5SjcKNpWCiEOsVHgJ bC8IbGGYsWSc2JSeSTRn4knq/NOTXJjfwmxO8nD5Arlpg8uFxJNPqIskBKLaG6IWBn9R HmVw== 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=Yix5VtMxOg5MzWl+xYnC7823+nYLztxkW6jPzePt5EI=; b=0060XHZEluv+kwTfYtviSs73u3dBTQ4ti69JLm/bPz/4QkHnfci3FUpcpsC0958OfH UZSMff9yVS0AsnKWPgN2DOFWtXXEnevEN42r9DkS2xKExolGs5Lp9oqYIWGQ3rrwcKhy Wr5+ppjtYct32wn9IR/f8o0Bl7yhzTqs9KsdSwtHn9tdzoM/1Ftmg3Dz8zi1kLiBLQny E3KN1i3xlRU8gDWQYODOrmHAwp7tyJVYbQi8FTExQqzrGNiSv6k1DPTgzS+km9sxSUV9 T+kjiHpLjXhtDkaokIamzmvWGBw3UDCxAgNEyU5mJu+evISy1ZX21wPJarZKYjmWF39e unKQ== 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 5si2154500otm.244.2019.12.08.07.02.09; Sun, 08 Dec 2019 07:02:21 -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 S1727127AbfLHPAK (ORCPT + 99 others); Sun, 8 Dec 2019 10:00:10 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36763 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726535AbfLHO6m (ORCPT ); Sun, 8 Dec 2019 09:58:42 -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 1idy14-0000TI-0r; Sun, 08 Dec 2019 15:58:34 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 506E91C2888; Sun, 8 Dec 2019 15:58:32 +0100 (CET) Date: Sun, 08 Dec 2019 14:58:32 -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, s390: Use CONFIG_PREEMPTION Cc: Thomas Gleixner , Sebastian Andrzej Siewior , Christian Borntraeger , Heiko Carstens , Linus Torvalds , Peter Zijlstra , Vasily Gorbik , linux-s390@vger.kernel.org, Ingo Molnar , x86 , LKML In-Reply-To: <20191015191821.11479-18-bigeasy@linutronix.de> References: <20191015191821.11479-18-bigeasy@linutronix.de> MIME-Version: 1.0 Message-ID: <157581711219.21853.18122159496311508925.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: fa686453053b70a8a01b7517df8cfc5872f63196 Gitweb: https://git.kernel.org/tip/fa686453053b70a8a01b7517df8cfc5872f63196 Author: Thomas Gleixner AuthorDate: Tue, 15 Oct 2019 21:18:04 +02:00 Committer: Ingo Molnar CommitterDate: Sun, 08 Dec 2019 14:37:35 +01:00 sched/rt, s390: 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 preemption and entry code over to use CONFIG_PREEMPTION. Add PREEMPT_RT output to die(). [bigeasy: +Kconfig, dumpstack.c] Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Vasily Gorbik Cc: linux-s390@vger.kernel.org Link: https://lore.kernel.org/r/20191015191821.11479-18-bigeasy@linutronix.de Signed-off-by: Ingo Molnar --- arch/s390/Kconfig | 2 +- arch/s390/include/asm/preempt.h | 4 ++-- arch/s390/kernel/dumpstack.c | 2 ++ arch/s390/kernel/entry.S | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index d4051e8..62b10a3 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -30,7 +30,7 @@ config GENERIC_BUG_RELATIVE_POINTERS def_bool y config GENERIC_LOCKBREAK - def_bool y if PREEMPT + def_bool y if PREEMPTTION config PGSTE def_bool y if KVM diff --git a/arch/s390/include/asm/preempt.h b/arch/s390/include/asm/preempt.h index b5ea9e1..6ede299 100644 --- a/arch/s390/include/asm/preempt.h +++ b/arch/s390/include/asm/preempt.h @@ -130,11 +130,11 @@ static inline bool should_resched(int preempt_offset) #endif /* CONFIG_HAVE_MARCH_Z196_FEATURES */ -#ifdef CONFIG_PREEMPT +#ifdef CONFIG_PREEMPTION extern asmlinkage void preempt_schedule(void); #define __preempt_schedule() preempt_schedule() extern asmlinkage void preempt_schedule_notrace(void); #define __preempt_schedule_notrace() preempt_schedule_notrace() -#endif /* CONFIG_PREEMPT */ +#endif /* CONFIG_PREEMPTION */ #endif /* __ASM_PREEMPT_H */ diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c index d306fe0..2c122d8 100644 --- a/arch/s390/kernel/dumpstack.c +++ b/arch/s390/kernel/dumpstack.c @@ -195,6 +195,8 @@ void die(struct pt_regs *regs, const char *str) regs->int_code >> 17, ++die_counter); #ifdef CONFIG_PREEMPT pr_cont("PREEMPT "); +#elif defined(CONFIG_PREEMPT_RT) + pr_cont("PREEMPT_RT "); #endif pr_cont("SMP "); if (debug_pagealloc_enabled()) diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index 270d1d1..9205add 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -790,7 +790,7 @@ ENTRY(io_int_handler) .Lio_work: tm __PT_PSW+1(%r11),0x01 # returning to user ? jo .Lio_work_user # yes -> do resched & signal -#ifdef CONFIG_PREEMPT +#ifdef CONFIG_PREEMPTION # check for preemptive scheduling icm %r0,15,__LC_PREEMPT_COUNT jnz .Lio_restore # preemption is disabled