Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp612842rdb; Tue, 23 Jan 2024 09:12:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDgNy4+fMpUGvEXUFLdPG0Ck4tqCXy+r4feqFJe2e1hthRAiIJSRVKNGURKOdKi1AVqSAH X-Received: by 2002:a05:6402:2025:b0:55a:8873:dc56 with SMTP id ay5-20020a056402202500b0055a8873dc56mr542162edb.149.1706029933331; Tue, 23 Jan 2024 09:12:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706029933; cv=pass; d=google.com; s=arc-20160816; b=N4bapdGqMku4+ZEKRXnocmAGC6eonq2AxAn7Llixwx81zxtK/SeejZLpYI7d6MrA0X FyX++IyR/xU9hyvdkAk8PhAs2SpbJaaEdfNDSjd18qmfntweH1vOISBiB/ueyK9XnV3V UbR7sgAhWwAp7QcKl9TTq7CKQCYzKbXjQcZGK5xyKYhG9U5y+YICpHLoyl2qIftZdIRG bqXWdWg0ntqmP5IWyF4Hchwr3LYsULLYMpbPaBmyim7sK/aYRHCUSwKhcLpHMD+6oKRu p/ijqV7nbo0bnYkJZRLWtTYk69/hFVrAv5o5T37Vhyg+OIIrW3SbdtMUYvUqbiAwC+ac R1eg== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :dkim-signature:dkim-signature:from; bh=92l9Ny1uPwtTpjOT9VYGZX+1CebFF3Ee9CkJCelMiYk=; fh=nOEvUOtvIydWxxQpRdVGTZdE7oDfSvGmdNyLCMjLbrA=; b=o61H3U3ig42l/emAublt6lHUPs3EO1pU1WYkAsXlUDqcBweh1i4Nu6GrhkfHd4Bcql naHfg7ZG6RUBId5yr1FFwyxUwgkdWkan9AOxnzbX7+aaYLdgl1DwtckVIo5jpKkNzoK2 YPsHylyEm3VHy3ELTvHnViwtmtPhTQB4y3Gwyjc3dOTmGX4XIu8FEl9UPRj32zR1k4ZX jZJvw/Vs4ZsJdPZxTZ08uh1hDDvStdgxcayvH48NYUSimk6jBYOcd0TDhk5yMUEBkKxw fPaW7Vn4sOsw+9fRrwyt2v5HR4zCaOZL8tOir52jh3N09nS7mzyBjEHR9j2fe0/PP6Yb cUdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BjTq9gpE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-35700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35700-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f19-20020a056402195300b0055c84012262si936509edz.232.2024.01.23.09.12.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 09:12:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BjTq9gpE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-35700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35700-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 44AFE1F2FDC6 for ; Tue, 23 Jan 2024 16:51:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49DB0823B9; Tue, 23 Jan 2024 16:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BjTq9gpE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Cee1Fhzz" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B22C081AD0; Tue, 23 Jan 2024 16:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706028439; cv=none; b=S/Rl3TLqRSOPd/rVOnHlL30iueYEbmvZOEcizCW6LvQaBbrcPwqDF3xcNlJBgnQ7GNrr/wK2APKX/AC5e6esxvbFEiZ/kvX41s0CcB9hrxe2qwuX/GAAudUfwB2t0NBgU2biOkVaqQkg9yxhonKArXoS/q5MHBrPLgYEDzh5Vq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706028439; c=relaxed/simple; bh=ABB1vlQxv/0V2+G9TW5mFcBYo1D2QEKJLsH+lva718Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YnZqM4wQTN8iJinmPtXMODqzjr7fBcy3uJH7q5yjXGthixax3W1Ctrxq1hEkSgxUdZ/8jpCuAr5tTuzKApgwpeOWk5j5gjUjj2JDd/hSIwjDTmE5z2sxcU3VUs25NMfmlySLwcgKpTUGUcPWG4CGkj9eqITBXZOTCzEDKE8sggs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BjTq9gpE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Cee1Fhzz; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706028435; 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; bh=92l9Ny1uPwtTpjOT9VYGZX+1CebFF3Ee9CkJCelMiYk=; b=BjTq9gpE6K+bqH9UgYcdfG0zBNSnLk7U8rkNPaZX0hdhFrsb+bNBxv0j6I+1dAtMCUKIkz 6e59WIhJJdqV3H1KYBDyp85spM9LbPJuHIQz89uP9TQAgn0yls2a7Aqcbm7PAa2/CN3Tb/ /AJbkRrK2YURWpWq/wxcB7K84J1Vb4ifam8srBIHK0VDNxUs8UOGZ2kkz57vc4vFdtPIrA Cyu+jnSReTVSdNdZc0YoXO0FUlw5f5tGunPP4IzSamucW1FvTwll0l8Fto/PukM3ig1xpJ A4e9v34GkDjuLmqYesVpjauB1Gu+iFZT9dbfZXz9Af3xlEVK4BOS52JoKJLyqg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706028435; 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; bh=92l9Ny1uPwtTpjOT9VYGZX+1CebFF3Ee9CkJCelMiYk=; b=Cee1FhzzonzVFWpipJGa1On/BqCneWof1t6vle79sTWaUbhLIRxSd1+VwvYmmY/Df1/3lw VsX+NGM9Zr0yM9DA== To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Frederic Weisbecker , Ingo Molnar , John Stultz , Stephen Boyd , Jonathan Corbet , Clemens Ladisch , linux-doc@vger.kernel.org, Anna-Maria Behnsen Subject: [PATCH 0/8] timers and Documentation: Cleanup Date: Tue, 23 Jan 2024 17:46:54 +0100 Message-Id: <20240123164702.55612-1-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, initially the plan was to simply transform already existing comments in timer code into kernel-doc DOC blocks, and reference them inside a *.rst file. After trying to get familiar with the kernel documentation by reading Documentation/doc-guide/* and have a look at the existing timer related kernel documentation (which is below Documentation/timers and also below Documentation/driver-api), the list what should/could be improved started to grow. So the aim of the queue is to do the first step for moving the timer related stuff into the 'core-api book'. It contains the following changes: - Do not expose internal hrtimer documentation (to prevent people of thinking they should use it somehow directly) - Add missing documentation and update existing ones to be compatible with kernel-doc/rst - Create a subfolder in core-api to make this the final destination of up-to-date timer documentation. Add banner to already existing timer related documentation to make sure they are really up to date before they are moved to the final destination. - Move timer API from driver-api to core-api - Add two files which make (in code hidden) timer documentation accessible via kernel documentation Thanks, Anna-Maria Anna-Maria Behnsen (8): include/hrtimers: Move hrtimer base related definitions into hrtimer_defs hrtimers: Update formatting of documentation tick/sched: Add function description for tick_nohz_next_event() timers: Add struct member description for timer_base jiffies: Transform comment about time_* functions into DOC block Documentation: Create a new folder for all timer internals Documentation: Move "core core" api into a separate file timers: Add timer wheel documentation Documentation/core-api/core-api.rst | 14 ++ Documentation/core-api/index.rst | 5 +- Documentation/core-api/kernel-api.rst | 12 +- Documentation/core-api/timers/api.rst | 63 ++++++ Documentation/core-api/timers/index.rst | 32 +++ .../core-api/timers/timer-list-timers.rst | 13 ++ Documentation/core-api/timers/timer-wheel.rst | 38 ++++ Documentation/driver-api/basics.rst | 24 --- Documentation/timers/highres.rst | 5 + Documentation/timers/hpet.rst | 5 + Documentation/timers/hrtimers.rst | 5 + Documentation/timers/index.rst | 5 + Documentation/timers/no_hz.rst | 4 + Documentation/timers/timekeeping.rst | 5 + Documentation/timers/timers-howto.rst | 5 + include/linux/hrtimer.h | 117 +---------- include/linux/hrtimer_defs.h | 102 ++++++++++ include/linux/jiffies.h | 15 +- include/linux/timer.h | 15 +- kernel/time/hrtimer.c | 18 +- kernel/time/tick-sched.c | 10 + kernel/time/timer.c | 184 ++++++++++++------ 22 files changed, 471 insertions(+), 225 deletions(-) create mode 100644 Documentation/core-api/core-api.rst create mode 100644 Documentation/core-api/timers/api.rst create mode 100644 Documentation/core-api/timers/index.rst create mode 100644 Documentation/core-api/timers/timer-list-timers.rst create mode 100644 Documentation/core-api/timers/timer-wheel.rst -- 2.39.2