From b293ccb7e2b6beda6181eb717e15f6569bdf110c Mon Sep 17 00:00:00 2001 From: Max Xu Date: Sat, 6 Jan 2018 14:00:12 +0800 Subject: [PATCH 1/6] cpufreq-set.md: add page --- pages/linux/cpufreq-set.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/cpufreq-set.md diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md new file mode 100644 index 0000000000..67ceeb8460 --- /dev/null +++ b/pages/linux/cpufreq-set.md @@ -0,0 +1,20 @@ +# cpufreq-set + +> A tool to modify CPU frequency settings. +> Requires root privileges. + +- Set the CPU frequency policy of CPU 1 to "userspace": + +`sudo cpufreq-set -c {{1}} -g {{userspace}}` + +- Set the minimum CPU frequency of CPU 1: + +`sudo cpufreq-set -c {{1}} --min {{min_frequency}}` + +- Set the maximum CPU frequency of CPU 1: + +`sudo cpufreq-set -c {{1}} --max {{max_frequency}}` + +- Set the work frequency of CPU 1 (requires "userspace" policy to be loaded): + +`sudo cpufreq-set -c {{1}} -f {{work_frequency}}` From 10f24962f17545cac2296e612eed1b0d0cb4f3c6 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Sat, 6 Jan 2018 14:03:49 +0800 Subject: [PATCH 2/6] Update cpufreq-set.md --- pages/linux/cpufreq-set.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md index 67ceeb8460..9a53b6ff17 100644 --- a/pages/linux/cpufreq-set.md +++ b/pages/linux/cpufreq-set.md @@ -1,7 +1,7 @@ # cpufreq-set > A tool to modify CPU frequency settings. -> Requires root privileges. +> Requires root privileges. - Set the CPU frequency policy of CPU 1 to "userspace": From 512306ff26f918213350e9c9e2bc0251425afd5f Mon Sep 17 00:00:00 2001 From: Max Xu Date: Sat, 6 Jan 2018 16:20:02 +0800 Subject: [PATCH 3/6] cpufreq-set.md: add value range --- pages/linux/cpufreq-set.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md index 9a53b6ff17..79373ba138 100644 --- a/pages/linux/cpufreq-set.md +++ b/pages/linux/cpufreq-set.md @@ -7,14 +7,14 @@ `sudo cpufreq-set -c {{1}} -g {{userspace}}` -- Set the minimum CPU frequency of CPU 1: +- Set the current minimum CPU frequency of CPU 1, value range between the output of command "cpufreq-info -l": `sudo cpufreq-set -c {{1}} --min {{min_frequency}}` -- Set the maximum CPU frequency of CPU 1: +- Set the current maximum CPU frequency of CPU 1, value range between the output of command "cpufreq-info -l": `sudo cpufreq-set -c {{1}} --max {{max_frequency}}` -- Set the work frequency of CPU 1 (requires "userspace" policy to be loaded): +- Set the current work frequency of CPU 1 , value range between the output of command "cpufreq-info -l" (requires "userspace" policy to be loaded): `sudo cpufreq-set -c {{1}} -f {{work_frequency}}` From 2fbd2598eb8fd425f6df20b238fa7a93b1c9a764 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Sun, 7 Jan 2018 14:29:20 +0530 Subject: [PATCH 4/6] cpufreq-set: wrap in backticks --- pages/linux/cpufreq-set.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md index 79373ba138..d419345f38 100644 --- a/pages/linux/cpufreq-set.md +++ b/pages/linux/cpufreq-set.md @@ -7,14 +7,14 @@ `sudo cpufreq-set -c {{1}} -g {{userspace}}` -- Set the current minimum CPU frequency of CPU 1, value range between the output of command "cpufreq-info -l": +- Set the current minimum CPU frequency of CPU 1, value range between the output of command `cpufreq-info -l`: `sudo cpufreq-set -c {{1}} --min {{min_frequency}}` -- Set the current maximum CPU frequency of CPU 1, value range between the output of command "cpufreq-info -l": +- Set the current maximum CPU frequency of CPU 1, value range between the output of command `cpufreq-info -l`: `sudo cpufreq-set -c {{1}} --max {{max_frequency}}` -- Set the current work frequency of CPU 1 , value range between the output of command "cpufreq-info -l" (requires "userspace" policy to be loaded): +- Set the current work frequency of CPU 1 , value range between the output of command `cpufreq-info -l` (requires "userspace" policy to be loaded): `sudo cpufreq-set -c {{1}} -f {{work_frequency}}` From 9c55758596c71717e61b7fc3c5f90bda4cd79db3 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Thu, 11 Jan 2018 19:45:28 +0800 Subject: [PATCH 5/6] Update cpufreq-set.md --- pages/linux/cpufreq-set.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md index d419345f38..4411a04e95 100644 --- a/pages/linux/cpufreq-set.md +++ b/pages/linux/cpufreq-set.md @@ -1,20 +1,20 @@ # cpufreq-set > A tool to modify CPU frequency settings. -> Requires root privileges. +> New frequency value range between the output of command `cpufreq-info -l`. - Set the CPU frequency policy of CPU 1 to "userspace": `sudo cpufreq-set -c {{1}} -g {{userspace}}` -- Set the current minimum CPU frequency of CPU 1, value range between the output of command `cpufreq-info -l`: +- Set the current minimum CPU frequency of CPU 1: `sudo cpufreq-set -c {{1}} --min {{min_frequency}}` -- Set the current maximum CPU frequency of CPU 1, value range between the output of command `cpufreq-info -l`: +- Set the current maximum CPU frequency of CPU 1: `sudo cpufreq-set -c {{1}} --max {{max_frequency}}` -- Set the current work frequency of CPU 1 , value range between the output of command `cpufreq-info -l` (requires "userspace" policy to be loaded): +- Set the current work frequency of CPU 1: `sudo cpufreq-set -c {{1}} -f {{work_frequency}}` From 995d43b46aa4526ea24086f82b790e64d628e22e Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 11 Jan 2018 17:33:52 +0530 Subject: [PATCH 6/6] cpufreq-set: clarify description --- pages/linux/cpufreq-set.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/cpufreq-set.md b/pages/linux/cpufreq-set.md index 4411a04e95..57e973857f 100644 --- a/pages/linux/cpufreq-set.md +++ b/pages/linux/cpufreq-set.md @@ -1,7 +1,7 @@ # cpufreq-set > A tool to modify CPU frequency settings. -> New frequency value range between the output of command `cpufreq-info -l`. +> The frequency value should range between the output of command `cpufreq-info -l`. - Set the CPU frequency policy of CPU 1 to "userspace":