Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7105951rdb; Fri, 15 Dec 2023 19:35:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFItsgfxLAL2kvXVN9lQZ4L2FhD1j1mp9ogjcsAYG9qMR7StyZ7ni4eU247d0ysBnlMGLWO X-Received: by 2002:a92:ced2:0:b0:35d:6528:f120 with SMTP id z18-20020a92ced2000000b0035d6528f120mr12003023ilq.62.1702697724602; Fri, 15 Dec 2023 19:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702697724; cv=none; d=google.com; s=arc-20160816; b=is5u+oHm1BElSKQ/0MDyVYfMneFFxWy0LDgCVJyh7HeNSmvIYU4T7Cjl570GFV5Ysp EbHv2bWcAtPIb9C2EKLVyF2rMXjwauBE5aF2pTjcmNPEMi8WqpHFtQZH3hK7dFg1bOuw lfaosfGq0lGAK2sWNDNWCb6zvSumTiz4YTqfrMAAMNkKCjcke5l8odBAKy3yvwLbHNbs C/adxVec7MStK932rG8IGfVtm7RMv8IlHfa1QmLAr/0tXFlMja3s6PYPt2WrDljn5jwQ Zj2BLQzS1RSRau+e7FUkGUIvjEE/ZBr3vJci1C0jX94Vs9lLSV8yH3bKfCX0/Jjw0HBL qcCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xTwDaJYHWx55QkXgTra2ib4UbsEOMeDcjHLbHkSEmrE=; fh=vHhjxHftTECn/hRvIWNlq1eDzDsn74Roqz0kmRcPgcE=; b=JcUvV5z/vwZkfU113RQxB+E6taCtPBKk4T2YNabGu0mcqFzmyBhFar8PBg4ViQ9V4s diSJ/lQxbLLHPa/0UGvZ4JpIhIL2o5CJ5RtnT0FJ7JKnayr42TteV6Rp73yj59ue0kD3 rK6HfPel+CtjROd7tFCsZftVe4WWemEd03iSzs3Z/bg8uz7KB6xmlCGYhWIhFvaLxpb/ E1OwO3rnNSt/W1dlmUkD+6Jo/L86OEXF7OteKuAjMqNp7gt3NDf5XVYJ01avmo4+NHpv xBK4PeCWzJNs5BPr4MXzGOH9HORSNOqQXnhN8e/W6n0M8DVMvehJ15IxCTU4hwCm9aqd uJBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IZfbmtUM; spf=pass (google.com: domain of linux-kernel+bounces-2012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d18-20020a170902ced200b001d09e7f1e1esi14299665plg.429.2023.12.15.19.35.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 19:35:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IZfbmtUM; spf=pass (google.com: domain of linux-kernel+bounces-2012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9DC19287C1E for ; Sat, 16 Dec 2023 03:34:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70B3F3527C; Sat, 16 Dec 2023 03:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="IZfbmtUM" X-Original-To: linux-kernel@vger.kernel.org Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF4BC3526F for ; Sat, 16 Dec 2023 03:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702697599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xTwDaJYHWx55QkXgTra2ib4UbsEOMeDcjHLbHkSEmrE=; b=IZfbmtUM8O5g5gu/VsP7tzGv6JlW4156s5qkNkOjD1RGbov6viUG9M9wrr/JDfWSrQ+lSq JiTvNyF/ll2BgTUM76067uiCK62SyFD01NwqJLq2vzu5bbKSvoZrfICrxraiEZaBSoiAz3 eSsc1nOr8ojexcfYgaf53pjr2Mh3ALk= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: Kent Overstreet , tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org Subject: [PATCH 33/50] Split out irqflags_types.h Date: Fri, 15 Dec 2023 22:32:39 -0500 Message-ID: <20231216033300.3553457-1-kent.overstreet@linux.dev> In-Reply-To: <20231216024834.3510073-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT We're working on only pulling in type definitions to sched.h whenever possible. Signed-off-by: Kent Overstreet --- include/linux/irqflags.h | 14 +------------- include/linux/irqflags_types.h | 22 ++++++++++++++++++++++ include/linux/sched.h | 2 +- 3 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 include/linux/irqflags_types.h diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h index 2b665c32f5fe..147feebd508c 100644 --- a/include/linux/irqflags.h +++ b/include/linux/irqflags.h @@ -12,6 +12,7 @@ #ifndef _LINUX_TRACE_IRQFLAGS_H #define _LINUX_TRACE_IRQFLAGS_H +#include #include #include #include @@ -34,19 +35,6 @@ #ifdef CONFIG_TRACE_IRQFLAGS -/* Per-task IRQ trace events information. */ -struct irqtrace_events { - unsigned int irq_events; - unsigned long hardirq_enable_ip; - unsigned long hardirq_disable_ip; - unsigned int hardirq_enable_event; - unsigned int hardirq_disable_event; - unsigned long softirq_disable_ip; - unsigned long softirq_enable_ip; - unsigned int softirq_disable_event; - unsigned int softirq_enable_event; -}; - DECLARE_PER_CPU(int, hardirqs_enabled); DECLARE_PER_CPU(int, hardirq_context); diff --git a/include/linux/irqflags_types.h b/include/linux/irqflags_types.h new file mode 100644 index 000000000000..c13f0d915097 --- /dev/null +++ b/include/linux/irqflags_types.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_IRQFLAGS_TYPES_H +#define _LINUX_IRQFLAGS_TYPES_H + +#ifdef CONFIG_TRACE_IRQFLAGS + +/* Per-task IRQ trace events information. */ +struct irqtrace_events { + unsigned int irq_events; + unsigned long hardirq_enable_ip; + unsigned long hardirq_disable_ip; + unsigned int hardirq_enable_event; + unsigned int hardirq_disable_event; + unsigned long softirq_disable_ip; + unsigned long softirq_enable_ip; + unsigned int softirq_disable_event; + unsigned int softirq_enable_event; +}; + +#endif + +#endif /* _LINUX_IRQFLAGS_TYPES_H */ diff --git a/include/linux/sched.h b/include/linux/sched.h index 3a58d3d7d264..d799427f6d1b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -11,6 +11,7 @@ #include +#include #include #include #include @@ -18,7 +19,6 @@ #include #include #include -#include #include #include #include -- 2.43.0