From patchwork Sat Dec 16 03:29:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13495402 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 473A5C4332F for ; Sat, 16 Dec 2023 03:30:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF2628D014C; Fri, 15 Dec 2023 22:30:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B02518D0143; Fri, 15 Dec 2023 22:30:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A42D8D014C; Fri, 15 Dec 2023 22:30:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 851678D0143 for ; Fri, 15 Dec 2023 22:30:19 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5707F160322 for ; Sat, 16 Dec 2023 03:30:19 +0000 (UTC) X-FDA: 81571253358.16.C849149 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) by imf22.hostedemail.com (Postfix) with ESMTP id 83A92C0007 for ; Sat, 16 Dec 2023 03:30:17 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=t9xGdVnf; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf22.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.173 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702697417; a=rsa-sha256; cv=none; b=c7iy1ibhB9Nda91lS0xb359VOy4kIDoZ5scXtjxidZEEwQlEp6YQlt86bkfAiLTQ5MEbRS D/SBrLItV0vbrgg/5Cc9KkgXhxXLp5BJFAp9NTqkx89LepVFUe2eSmsvp4ae/1rv+vF1Zz eaqvGlUWzYxurjmlJu5aLH9Idts+noY= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=t9xGdVnf; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf22.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.173 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702697417; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UOn/Y15NsNzqgslo/DGUA4vnnDcPK/hObV7tmn0+yB0=; b=0+J0dLt/nJuB340829Gmwcs33CmZ0NMyRYUJAm9M+81Rfn32C3/GmyjkQxFLJuoMD9pMrq yrs20+6jAPbXVjiKcE8fw+2CW/HS15vFUibW0il7X9y2MeklJo0lsfZW9pcRayLXCX7gpC M4qfFRSoH+stkeMRnLbQODJQYkCgQDw= 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=1702697416; 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=UOn/Y15NsNzqgslo/DGUA4vnnDcPK/hObV7tmn0+yB0=; b=t9xGdVnfoMSLTM9Td4x0n7yOYowwiWYquuWGItTI09FEmyYaq1F5zDGKbE6Z68kquCcZ4v QzWKPsB1k1p716MbbYUSL3g+gxUets/iissMmxK50hFXtT7+43ywuaUk/ZRITZoXnE5n/A qzJSrRGwWvwDYzhsS7l0YJyP71QnUks= 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 27/50] timerqueue: Split out timerqueue_types.h Date: Fri, 15 Dec 2023 22:29:33 -0500 Message-ID: <20231216032957.3553313-6-kent.overstreet@linux.dev> In-Reply-To: <20231216032957.3553313-1-kent.overstreet@linux.dev> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032957.3553313-1-kent.overstreet@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 83A92C0007 X-Stat-Signature: g7z71zesw4ms9538gik6mchoz1y16874 X-HE-Tag: 1702697417-853555 X-HE-Meta: U2FsdGVkX1+BCbOeMOdH5lvS+iEEH/q9k7eHFvmH2jc2Qfep+dn621DS5zGzM+bfiruHLrP+0bxpmCQSnrhzql55KRyshZmjpZhiL5mymofbd/8rPmEjDz7jva5tyrZIxg7VSlb86jli7+EAymvXHTs8QXNNlWTtgfvsfs/h3fPpWKkT8LQcLF7VlRRCZZfUT1b4DISeg9X+eR2jY0T13pT8KFzLLqtaQP85kSlSjOC6DoZqfJBGcpqZ5ifNUsq5QJb5HDvWLli1W2y0/bC7rSh4yYfbbBxp2LeTgYAt+gQazYWkjfVgzmZJ++l+fqqS+EEtcHfKoKIcH9KPvLjgKAdkB6R7GTTDufLMNWWATqOvj4WLEjBRmeaXtijZ+w+38bw3R8AhrCTjyKk/nNA8E+uz2jM3cZm2FEOrHsiHsY9LGEbUvHm8Eu1CJDM8knsK9tQHSTxQ1YWf2q3EwLp+c8G35RNIZrwn5gd1uEIe9kQFfj6iXBixU9+A0RV8Pd1wGMs0+xGS9q/cZZQ8eQBgQ8hQSFG7VC2N++00aWnaJvi2pltLgxiJaoThcDT+DtlygzjNQvDhGprecugYY46OeJU+45q9rZ7GycV7qAfkZUYOZ856HIASh7PvprU9tBEJ3p8fneIKxjS98E8ib+ED0g6qRjOYokfMpvqjgIkLfZ1XPJ+BS44aKNeWBaqiyliQpXtNeEvDHkiBI+XbsHsA8k/I+gWbX5FJELLdetw9gqOU8MGyPiKtvxwQl5ozhDhIqjlQHlfAqXkTlBe7+Xrk6nEaxrgVqu4tTRPlPfvK2U1r6RMUUuzX109hS8MksAXQ5E2C6r63xoPDyakqaFtW2zeKEfIO8d2OPf/xAuNn8kKTKgOj0OS6AJfQSNmaI2XrBG58hiPfMkBhvXxFzULCALgeNqtD1WXz949oiizB6N88nJXpv6oDuZFkmlyZ8VfmahDsd8P2HChXxSecOeC +N58vdxB +pDSgc6K02lEm0mOyur5DqitcTiuRMYaGtjbYrVDNQavSyQWRCY/mhh4bdrTX4HPGCLKNlrv4xgmUBTMRK/4LmDddM+GnJDkBHX8mNNPdH8vIgKDbOXu5HFuKE9FDYMRWpKDNGAHp5YtPHYoHFVTMJoTZAtAT7CTfWLsPlbFtIPitvI0ATWbrLbVFGAk+t/KJd72zxMxLKC7hD8E= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Trimming down sched.h dependencies: timerqueue_types can include just rbtree_types.h instead of pulling in rbtree.h. Cc: Thomas Gleixner Signed-off-by: Kent Overstreet --- include/linux/hrtimer_types.h | 2 +- include/linux/posix-timers_types.h | 2 +- include/linux/timerqueue.h | 13 +------------ include/linux/timerqueue_types.h | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 include/linux/timerqueue_types.h diff --git a/include/linux/hrtimer_types.h b/include/linux/hrtimer_types.h index f4ef391b96a7..ad66a3081735 100644 --- a/include/linux/hrtimer_types.h +++ b/include/linux/hrtimer_types.h @@ -3,7 +3,7 @@ #define _LINUX_HRTIMER_TYPES_H #include -#include +#include struct hrtimer_clock_base; diff --git a/include/linux/posix-timers_types.h b/include/linux/posix-timers_types.h index 57fec639a9bb..2b1f30ee2db0 100644 --- a/include/linux/posix-timers_types.h +++ b/include/linux/posix-timers_types.h @@ -3,7 +3,7 @@ #define _linux_POSIX_TIMERS_TYPES_H #include -#include +#include #include /* diff --git a/include/linux/timerqueue.h b/include/linux/timerqueue.h index adc80e29168e..62973f7d4610 100644 --- a/include/linux/timerqueue.h +++ b/include/linux/timerqueue.h @@ -3,18 +3,7 @@ #define _LINUX_TIMERQUEUE_H #include -#include - - -struct timerqueue_node { - struct rb_node node; - ktime_t expires; -}; - -struct timerqueue_head { - struct rb_root_cached rb_root; -}; - +#include extern bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node); diff --git a/include/linux/timerqueue_types.h b/include/linux/timerqueue_types.h new file mode 100644 index 000000000000..dc298d0923e3 --- /dev/null +++ b/include/linux/timerqueue_types.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_TIMERQUEUE_TYPES_H +#define _LINUX_TIMERQUEUE_TYPES_H + +#include +#include + +struct timerqueue_node { + struct rb_node node; + ktime_t expires; +}; + +struct timerqueue_head { + struct rb_root_cached rb_root; +}; + +#endif /* _LINUX_TIMERQUEUE_TYPES_H */