Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1510035imm; Wed, 10 Oct 2018 16:13:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV61vgGcFpfT1adtfCKPI/IYLcfm1sPlRnXn9hrhxPpRCkmu1/b3GvOF8s80epUE7GL3cGuQi X-Received: by 2002:a63:9c3:: with SMTP id 186-v6mr31672665pgj.249.1539213210064; Wed, 10 Oct 2018 16:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539213210; cv=none; d=google.com; s=arc-20160816; b=YF4V8nfAO+Z2QvvZylKcFDbXIz8n30IL3swRDrNxT/TOyaJKPdE2qc1rVze/ropSw3 y+qFqkQ5Utsd94RyB8ozqEXkhUxMq89OiMwOMqGwVAotgimZGlusB1Ky+pYsXCGQ32Y5 GqNJo8vUl8rCC3F/3w+G6DATvwuVIh56YhU5/ua81o2ccGF5F6wPJRFrwHe9zDTUj6s0 l3MQY15/K/6egMAVyNBFVkfXpoEATUf6MH1wPBE3Epn/QgSRISbwANY7GWFfnz7Fy87a ZdApNjNVYazHCN30TZr30Ln8tHMhPimzuWYqPcOQIexaAerYAGdGxExIYGC57htdgLPn PP6g== 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=pMXwp+H+30tALp/gTBzwDNGgXFUNSuLSCyg7OP0TUVg=; b=VDmrHr3j2heZyq2zUrstnH1ktmbPRnD0oTN0reAtGqrAescE4QKWmQBs2bTRwyoPTM xZBnjyfvUgKMdTH9x8n5wfTydaKV6F6svEFtlDjfnjmdxlYFZlX04dLMZImbh7sjjq8N k1fDLINr96zAgp0qYFytZvfKRbdpEpo7WFgk9HUcU5THl+MfzSSgHIFDazdY5d5SMVTl cj5y2Ed99YG3NvkRn3vArNRJ8LbqZvPcj7buRO/n2rkad5poIW7DkgQcp8Nv6GCDjoik cpeXUWGdKRRyDbbA/1FBAkmJFRnOMePnSxvDWUnQyH8aFRG/z0/8Nj0Qaw2dmzjejOza KblQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+ksysBf; 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 w6-v6si27176990pgm.557.2018.10.10.16.13.15; Wed, 10 Oct 2018 16:13:30 -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=T+ksysBf; 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 S1726906AbeJKGhG (ORCPT + 99 others); Thu, 11 Oct 2018 02:37:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:35218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbeJKGhG (ORCPT ); Thu, 11 Oct 2018 02:37:06 -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 E436D214DA; Wed, 10 Oct 2018 23:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539213164; bh=h6UUXov35x4hMK8+UhZMANrqwBrjnlTpzw7k+RzUgxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T+ksysBf+oM8GkH//FKb5lRY59FBoy20j90T1pJ/Hj4LUBqBUfCsQ7z48xUvNMywR H0zV42lZWvjWCVpz01fopAwOZzX3v3fesiuajZ7b3XUhQPvqM0TkTNpquj1KnBAyXZ IgGDQpEwr7VbL4fMdGnbo8qhK/kjyjBHLeZSVm7E= 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 04/30] softirq: Normalize softirq_pending naming scheme Date: Thu, 11 Oct 2018 01:11:51 +0200 Message-Id: <1539213137-13953-5-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 Use the subsystem as the prefix to name the __softirq_data accessors. They are going to be extended and want a more greppable and standard naming sheme. 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/s390/include/asm/hardirq.h | 4 ++-- include/linux/interrupt.h | 4 ++-- kernel/softirq.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/s390/include/asm/hardirq.h b/arch/s390/include/asm/hardirq.h index e26325f..3103680 100644 --- a/arch/s390/include/asm/hardirq.h +++ b/arch/s390/include/asm/hardirq.h @@ -14,8 +14,8 @@ #include #define local_softirq_pending() (S390_lowcore.softirq_data) -#define set_softirq_pending(x) (S390_lowcore.softirq_data = (x)) -#define or_softirq_pending(x) (S390_lowcore.softirq_data |= (x)) +#define softirq_pending_set(x) (S390_lowcore.softirq_data = (x)) +#define softirq_pending_or(x) (S390_lowcore.softirq_data |= (x)) #define __ARCH_IRQ_STAT #define __ARCH_HAS_DO_SOFTIRQ diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 1de87ec..fc88f0d 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -474,8 +474,8 @@ enum #endif #define local_softirq_pending() (__this_cpu_read(local_softirq_data_ref)) -#define set_softirq_pending(x) (__this_cpu_write(local_softirq_data_ref, (x))) -#define or_softirq_pending(x) (__this_cpu_or(local_softirq_data_ref, (x))) +#define softirq_pending_set(x) (__this_cpu_write(local_softirq_data_ref, (x))) +#define softirq_pending_or(x) (__this_cpu_or(local_softirq_data_ref, (x))) #endif /* local_softirq_pending */ diff --git a/kernel/softirq.c b/kernel/softirq.c index 6f58486..c39af4a 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -271,7 +271,7 @@ asmlinkage __visible void __softirq_entry __do_softirq(void) restart: /* Reset the pending bitmask before enabling irqs */ - set_softirq_pending(0); + softirq_pending_set(0); local_irq_enable(); @@ -448,7 +448,7 @@ void raise_softirq(unsigned int nr) void __raise_softirq_irqoff(unsigned int nr) { trace_softirq_raise(nr); - or_softirq_pending(1UL << nr); + softirq_pending_or(1UL << nr); } void open_softirq(int nr, void (*action)(struct softirq_action *)) -- 2.7.4