Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1016588pxb; Thu, 9 Sep 2021 18:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrZU/SVNxNPJ/wyNL6gUefPKnFWPKm1ifsVGx7pW5LIGb8tyR72w+lj3iA/8DGEydMZg3l X-Received: by 2002:a17:906:fb19:: with SMTP id lz25mr6554462ejb.162.1631235946382; Thu, 09 Sep 2021 18:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631235946; cv=none; d=google.com; s=arc-20160816; b=s0TM9UvCEY5ZCYBgvcUdZGGREU/03pfQZhRnlBiyjw0wdY4iWMv2KRt+YFlvxfkV5H VLPrV723TkKxz2kLq1Ijeu2g7v7qcYMUXEQqKxh0OrUpmgDCoqX7uYZQvR5x844Sxgty 0ERNF5NKZdPj4ZFih4ppSR8eTLM6KwIqzBksuXPMgY2FGSQV2ib6UoawwHmymT/gVrle RC9kQ9AqSdpO5CWVosszhh9ygN42Ec1J29V8XT994P7ECiLfZhGueekcOrxNgliR9xfU FuINRyi2Jk3VY3IVJ9QIVZOZTpHy3OecykJ+KAlasLI8c4hkiC/nDb2k8kHarOl4lMzH uo+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BJ9cOb6zF/lQ1KvQEWmoTwhWe5BToxWr+kgmYuDleZI=; b=mXoC+3DOSwnzvuwp6GHXz2gypcRFVDQVjfT0cOi81R6i0hgtlUrVfk6EAW+ui8pcaY oEG3OClNPSqGUfFAZPAkXvZeu3dEQx6AHjfrjAgpwG4XGWmvM6HMljY9UMaSQEQx64AO 12emqmdwydq45s2y7Afu1SfsxlGGgwOvgh/pCLJ+aF3dLiiuteMcJoXRAQvoMc8qKQdW 8xMgR+TXQ/Z3BOI7g62y9vr/ShFSHpPG2OF1TS8kiEf5A3BSfS51bLZduzLuxX7cULH1 +/pQH7HBkFbJEUko97XIPppr/S2bmdvnvDMVytgHxqeQs/CTutwb2IstPTk8RQDHtH8h BZtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESZg825K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si3604661edy.66.2021.09.09.18.05.23; Thu, 09 Sep 2021 18:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESZg825K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235567AbhIJBBR (ORCPT + 99 others); Thu, 9 Sep 2021 21:01:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:49044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234237AbhIJAXi (ORCPT ); Thu, 9 Sep 2021 20:23:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0018610A3; Fri, 10 Sep 2021 00:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631233348; bh=B3+dapiH7ZqT0zNupi/gPeO0vO8/7rY0FDBnebcTA1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ESZg825KvV5tGsZ0dn3orW51NieRVTYim0DUkFfMPslxm/8Q7zPksDkuSpsuaO2UN WMAD3uthyDVN4+1/OrCYmGj7DBflKywPW8bRZD/FaTHYHeXbx3AqawJdQGmmY6uJX/ QDC3Bkb0sKH/on9vNNviNaeF75Xw0nKLe8+tXOHgoU24R18YWsEDS6/QIcfMxqB05l hy0F1Jx0wzzKn/dQZ9WBiLsxdR4z7ZBLxPD5EgySjysfQFHb5NH/10nkp7rWkhova2 AJmS9/47AZNj8OFC7alwNAyo5otn1j7OGKo6bTP8Va9LqHlb0wuuwXpht5bPZ+w2Ig bvDZhaAQhTyHQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Juergen Gross , Sasha Levin , xen-devel@lists.xenproject.org Subject: [PATCH AUTOSEL 5.4 34/37] xen: remove stray preempt_disable() from PV AP startup code Date: Thu, 9 Sep 2021 20:21:39 -0400 Message-Id: <20210910002143.175731-34-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910002143.175731-1-sashal@kernel.org> References: <20210910002143.175731-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Juergen Gross [ Upstream commit 58e636039b512697554b579c2bb23774061877f5 ] In cpu_bringup() there is a call of preempt_disable() without a paired preempt_enable(). This is not needed as interrupts are off initially. Additionally this will result in early boot messages like: BUG: scheduling while atomic: swapper/1/0/0x00000002 Signed-off-by: Juergen Gross Link: https://lore.kernel.org/r/20210825113158.11716-1-jgross@suse.com Signed-off-by: Juergen Gross Signed-off-by: Sasha Levin --- arch/x86/xen/smp_pv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index 0cebe5db691d..b87c6403b5bd 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -61,7 +61,6 @@ static void cpu_bringup(void) cr4_init(); cpu_init(); touch_softlockup_watchdog(); - preempt_disable(); /* PVH runs in ring 0 and allows us to do native syscalls. Yay! */ if (!xen_feature(XENFEAT_supervisor_mode_kernel)) { -- 2.30.2