All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tang Yizhou <tangyizhou@huawei.com>
To: <siyanteng@loongson.cn>, <alexs@kernel.org>, <seakeel@gmail.com>,
	"yanteng si" <siyanteng01@gmail.com>, <corbet@lwn.net>
Cc: <linux-doc@vger.kernel.org>, <zhengbin13@huawei.com>,
	<tangyeechou@gmail.com>
Subject: Re: [PATCH -next v2] doc/zh-CN: Update cpu-freq/core.rst to make it more readable
Date: Tue, 7 Dec 2021 11:24:05 +0800	[thread overview]
Message-ID: <0ec7c579-1495-d102-ff5f-07ba089ca47e@huawei.com> (raw)
In-Reply-To: <20211202130240.27942-1-tangyizhou@huawei.com>

On 2021/12/2 21:02, Tang Yizhou wrote:
> These Chinese translations are easier to understand.
> 
> Also update the first memeber of struct cpufreq_freqs.
> 
> Signed-off-by: Tang Yizhou <tangyizhou@huawei.com>
> Acked-by: Yanteng Si <siyanteng@loongson.cn>
> Reviewed-by: Alex Shi <alexs@kernel.org>
> ---
> v2:
> 1. Take Yangteng's advice.
> 2. Add proofreader.
> 3. Add Acked-by and Reviewed-by tag.
> 
>  .../translations/zh_CN/cpu-freq/core.rst      | 24 ++++++++++---------
>  1 file changed, 13 insertions(+), 11 deletions(-)
> 
> diff --git a/Documentation/translations/zh_CN/cpu-freq/core.rst b/Documentation/translations/zh_CN/cpu-freq/core.rst
> index 0c6fd447ced6..b3c095306ffe 100644
> --- a/Documentation/translations/zh_CN/cpu-freq/core.rst
> +++ b/Documentation/translations/zh_CN/cpu-freq/core.rst
> @@ -7,7 +7,9 @@
>  
>   司延腾 Yanteng Si <siyanteng@loongson.cn>
>  
> -.. _cn_core.rst:
> +:校译:
> +
> + 唐艺舟 Tang Yizhou <tangyeechou@gmail.com>
>  
>  ====================================
>  CPUFreq核心和CPUFreq通知器的通用说明
> @@ -29,10 +31,10 @@ CPUFreq核心和CPUFreq通知器的通用说明
>  ======================
>  
>  cpufreq核心代码位于drivers/cpufreq/cpufreq.c中。这些cpufreq代码为CPUFreq架构的驱
> -动程序(那些操作硬件切换频率的代码)以及 "通知器 "提供了一个标准化的接口。
> -这些是设备驱动程序或需要了解策略变化的其它内核部分(如 ACPI 热量管理)或所有频率更改(除
> -计时代码外),甚至需要强制确定速度限制的通知器(如 ARM 架构上的 LCD 驱动程序)。
> -此外, 内核 "常数" loops_per_jiffy会根据频率变化而更新。
> +动程序(那些执行硬件频率切换的代码)以及 "通知器" 提供了一个标准化的接口。
> +包括设备驱动程序;需要了解策略变化(如 ACPI 热量管理),或所有频率变化(如计时代码),
> +甚至需要强制限制为指定频率(如 ARM 架构上的 LCD 驱动程序)的其它内核组件。
> +此外,内核 "常数" loops_per_jiffy 会根据频率变化而更新。
>  
>  cpufreq策略的引用计数由 cpufreq_cpu_get 和 cpufreq_cpu_put 来完成,以确保 cpufreq 驱
>  动程序被正确地注册到核心中,并且驱动程序在 cpufreq_put_cpu 被调用之前不会被卸载。这也保证
> @@ -41,7 +43,7 @@ cpufreq策略的引用计数由 cpufreq_cpu_get 和 cpufreq_cpu_put 来完成,
>  2. CPUFreq 通知器
>  ====================
>  
> -CPUFreq通知器符合标准的内核通知器接口。
> +CPUFreq通知器遵循标准的内核通知器接口。
>  关于通知器的细节请参阅 linux/include/linux/notifier.h。
>  
>  这里有两个不同的CPUfreq通知器 - 策略通知器和转换通知器。
> @@ -69,20 +71,20 @@ CPUFreq通知器符合标准的内核通知器接口。
>  
>  第三个参数是一个包含如下值的结构体cpufreq_freqs:
>  
> -=====	====================
> -cpu	受影响cpu的编号
> +======	===============================
> +policy	指向struct cpufreq_policy的指针
>  old	旧频率
>  new	新频率
>  flags	cpufreq驱动的标志
> -=====	====================
> +======	===============================
>  
>  3. 含有Operating Performance Point (OPP)的CPUFreq表的生成
>  ==================================================================
>  关于OPP的细节请参阅 Documentation/power/opp.rst
>  
>  dev_pm_opp_init_cpufreq_table -
> -	这个功能提供了一个随时可用的转换程序,用来将OPP层关于可用频率的内部信息翻译成一种容易提供给
> -	cpufreq的格式。
> +	这个函数提供了一个随时可用的转换例程,用来将OPP层关于可用频率的内部信息翻译成一种
> +	cpufreq易于处理的格式。
>  
>  	.. Warning::
>  
> 

Hi, jon! Could you please apply this patch? Thanks.

Tang

  reply	other threads:[~2021-12-07  3:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-02 13:02 [PATCH -next v2] doc/zh-CN: Update cpu-freq/core.rst to make it more readable Tang Yizhou
2021-12-07  3:24 ` Tang Yizhou [this message]
2021-12-10 21:30   ` Jonathan Corbet

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=0ec7c579-1495-d102-ff5f-07ba089ca47e@huawei.com \
    --to=tangyizhou@huawei.com \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=seakeel@gmail.com \
    --cc=siyanteng01@gmail.com \
    --cc=siyanteng@loongson.cn \
    --cc=tangyeechou@gmail.com \
    --cc=zhengbin13@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.