Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1510378imm; Wed, 10 Oct 2018 16:13:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV61k7ZQv1Np60IpomzsaAD0SEuM0V3qzIhXnkr61URc5OP0hEHHFxBZqbj1PN45YWHaiPRlZ X-Received: by 2002:a62:e80c:: with SMTP id c12-v6mr29260857pfi.124.1539213236926; Wed, 10 Oct 2018 16:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539213236; cv=none; d=google.com; s=arc-20160816; b=Tp/zaafkaCSiSNqYfOIlFlv24gfwcAxYYbT2RORspY8ngK8584u841ymFc32jmDB6Z NQcxuvZUmJeEivwIqkke+RGn8K29GyMOpYnSVgFw85oPhv6bNEvm0R10rKR6qsM8WrSX knuWxIpRloW7Kf1cD+4Sn4G7UTSSjvptjBxBQfBvbek4Ke5RfN4RneXrs4IwSOOiNv0M sSbs1kKmZpyocZdZbYBtyGfaCHdZXS5aE+6Qti2NDeYUz4yD28tL4t16Eg8GRFgGIjul UJcNAC2/lsqJGELNY88VxpjY1AjJZ5auPGb8F0FxgT41Kym73r7oEe+jWUcst533FneB Z2wA== 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=FQtnCFTtIXrw+G5DLO/2iDNZUNMgHlnNy1j8pGozw4s=; b=MhBAWfim932cceGn6q1vqnXLBppDgoxZvkrPDG9W7umGpWDM3nss3CIixpw7VJaqR+ jRTSLHl1fnLlhbaLfkmrsYn1tnt91GBsnVxjtfEvKL1hYkUrob8+GEdJVToYrRkrh5zI Sc6ToTZlEy/bcjraJQYxcEQ0XytYOc8CpnVllIKH4PqjXPg7pOYL4uTBem2XWUYhC4JM oFb6Hl/BaW25ycDavvvJtCsZkV+rt8Au26/XCM49c1DiqlkGk2xjmP34QtW9bcmphixt DHFwvdqbX0qXYXGVgmEZWcLAJvBTd4ztscfaJJh8B4twRHL9WNCXT0oz9WqOW+D6VaHR D/yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eEZc6PJf; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21-v6si24603508pgg.407.2018.10.10.16.13.38; Wed, 10 Oct 2018 16:13:56 -0700 (PDT) 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=@kernel.org header.s=default header.b=eEZc6PJf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbeJKGhV (ORCPT + 99 others); Thu, 11 Oct 2018 02:37:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbeJKGhU (ORCPT ); Thu, 11 Oct 2018 02:37:20 -0400 Received: from lerouge.suse.de (LFbn-NCY-1-241-207.w83-194.abo.wanadoo.fr [83.194.85.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E000121524; Wed, 10 Oct 2018 23:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539213179; bh=pQ9qeH4qjNbiNVGk4y/TVMXfrhMzGzePHrWSTmP7TYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eEZc6PJfqa6kPGXYPqM6JW+YOmj/4oV23efkPGYVNOQYQM9gNzNhfEUXDolMIbgrm BvIQoYyyWYwBbfOi8VHlx8YeFweycD4UE6AHP4PJdPcvr+PRMHA62seq4i2vnkqOf5 OY89uIIIUYddZJdNSQDPaqZCDnCVxPaid07ylv6I= From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Sebastian Andrzej Siewior , Peter Zijlstra , "David S . Miller" , Linus Torvalds , Thomas Gleixner , Frederic Weisbecker , "Paul E . McKenney" , Ingo Molnar , Mauro Carvalho Chehab Subject: [RFC PATCH 09/30] x86: Init softirq enabled field Date: Thu, 11 Oct 2018 01:11:56 +0200 Message-Id: <1539213137-13953-10-git-send-email-frederic@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539213137-13953-1-git-send-email-frederic@kernel.org> References: <1539213137-13953-1-git-send-email-frederic@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frederic Weisbecker All softirqs must be set enabled on boot. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Linus Torvalds Cc: David S. Miller Cc: Mauro Carvalho Chehab Cc: Paul E. McKenney --- arch/x86/kernel/irq.c | 5 ++++- include/linux/bottom_half.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 59b5f2e..b859861 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -22,7 +23,9 @@ #define CREATE_TRACE_POINTS #include -DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); +DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat) = { + .__softirq_data = SOFTIRQ_DATA_INIT, +}; EXPORT_PER_CPU_SYMBOL(irq_stat); DEFINE_PER_CPU(struct pt_regs *, irq_regs); diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h index a9571ad..fd75d1a 100644 --- a/include/linux/bottom_half.h +++ b/include/linux/bottom_half.h @@ -33,6 +33,8 @@ enum #define SOFTIRQ_ENABLED_SHIFT 16 #define SOFTIRQ_PENDING_MASK (BIT(SOFTIRQ_ENABLED_SHIFT) - 1) +#define SOFTIRQ_DATA_INIT (SOFTIRQ_ALL_MASK << SOFTIRQ_ENABLED_SHIFT) + #ifdef CONFIG_TRACE_IRQFLAGS extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); -- 2.7.4