From: Xingqiu Xu <hilbertanjou83@gmail.com>
To: alexs@kernel.org, si.yanteng@linux.dev, corbet@lwn.net
Cc: dzm91@hust.edu.cn, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Xingqiu Xu <hilbertanjou83@gmail.com>
Subject: [PATCH v2 3/7] docs/zh_CN: Translate timers/hpet.rst
Date: Wed, 31 Dec 2025 03:02:08 +0800 [thread overview]
Message-ID: <c1504ef8f30bf0fa3195246e481d1f4cd009fd8c.1767118457.git.hilbertanjou83@gmail.com> (raw)
In-Reply-To: <cover.1767118457.git.hilbertanjou83@gmail.com>
Translate .../timers/hpet.rst into Chinese.
Update timers/index.rst to include the translated file.
Update translation through commit 458f69ef3665
("docs: timers: convert docs to ReST and rename to *.rst")
Signed-off-by: Xingqiu Xu <hilbertanjou83@gmail.com>
---
.../translations/zh_CN/timers/hpet.rst | 43 +++++++++++++++++++
.../translations/zh_CN/timers/index.rst | 2 +-
2 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 Documentation/translations/zh_CN/timers/hpet.rst
diff --git a/Documentation/translations/zh_CN/timers/hpet.rst b/Documentation/translations/zh_CN/timers/hpet.rst
new file mode 100644
index 000000000000..6ed46220e12e
--- /dev/null
+++ b/Documentation/translations/zh_CN/timers/hpet.rst
@@ -0,0 +1,43 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/timers/hpet.rst
+
+:翻译:
+
+ 徐兴球 Xingqiu Xu <hilbertanjou83@gmail.com>
+
+================================
+Linux 高精度事件定时器驱动程序
+================================
+
+高精度事件定时器(HPET)硬件遵循 Intel 和
+Microsoft 的规范,修订版 1。
+
+每个 HPET 有一个固定速率计数器(以 10 MHz
+以上运行,因此称为"高精度")和最多 32 个比
+较器。通常提供三个或更多比较器,每个比较器
+都可以生成单次中断,并且至少其中一个具有支
+持周期中断的额外硬件。比较器也称为"定时器",
+这可能引起混淆,因为通常定时器彼此独立……这
+些共享一个计数器,使重置变得复杂。
+
+HPET 设备可以支持两种中断路由模式。在一种
+模式下,比较器是没有特定系统角色的附加中断
+源。许多 x86 BIOS 编写者根本不路由 HPET
+中断,这导致该模式无法使用。它们支持另一种
+"传统替换"模式,其中前两个比较器替代 8254
+定时器和 RTC 的中断。
+
+该驱动程序支持在驱动程序 module_init 例程
+被调用之前检测 HPET 驱动分配并初始化
+HPET。这使得使用定时器 0 或 1 作为主定时器
+的平台代码能够拦截 HPET 初始化。可以在
+arch/x86/kernel/hpet.c 中找到此初始化的示
+例。
+
+该驱动程序提供了一个用户空间 API,类似于
+RTC 驱动程序框架中的 API。示例用户空间程
+序在 file:samples/timers/hpet_example.c
+中提供。
diff --git a/Documentation/translations/zh_CN/timers/index.rst b/Documentation/translations/zh_CN/timers/index.rst
index c1e178484f96..bf63a69ca71d 100644
--- a/Documentation/translations/zh_CN/timers/index.rst
+++ b/Documentation/translations/zh_CN/timers/index.rst
@@ -15,12 +15,12 @@
.. toctree::
:maxdepth: 1
+ hpet
timekeeping
TODOList:
* highres
-* hpet
* hrtimers
* no_hz
* delay_sleep_functions
--
2.34.1
next prev parent reply other threads:[~2025-12-30 19:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-30 19:02 [PATCH v2 0/7] docs/zh_CN: Add timers subsystem translation Xingqiu Xu
2025-12-30 19:02 ` [PATCH v2 1/7] docs/zh_CN: Add timers directory Chinese translation Xingqiu Xu
2025-12-30 19:02 ` [PATCH v2 2/7] docs/zh_CN: Translate timers/timekeeping.rst Xingqiu Xu
2025-12-30 19:02 ` Xingqiu Xu [this message]
2025-12-30 19:02 ` [PATCH v2 4/7] docs/zh_CN: Translate timers/hrtimers.rst Xingqiu Xu
2025-12-30 19:02 ` [PATCH v2 5/7] docs/zh_CN: Translate timers/highres.rst Xingqiu Xu
2025-12-30 19:02 ` [PATCH v2 6/7] docs/zh_CN: Translate timers/no_hz.rst Xingqiu Xu
2025-12-30 19:02 ` [PATCH v2 7/7] docs/zh_CN: Translate timers delay_sleep_functions Xingqiu Xu
2026-01-06 5:47 ` [PATCH v2 0/7] docs/zh_CN: Add timers subsystem translation Dongliang Mu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1504ef8f30bf0fa3195246e481d1f4cd009fd8c.1767118457.git.hilbertanjou83@gmail.com \
--to=hilbertanjou83@gmail.com \
--cc=alexs@kernel.org \
--cc=corbet@lwn.net \
--cc=dzm91@hust.edu.cn \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=si.yanteng@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®