* [PATCH 0/3] lib: dhry: miscellaneous cleanups
@ 2024-01-22 14:50 Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 1/3] lib: dhry: remove unneeded <linux/mutex.h> Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-01-22 14:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Geert Uytterhoeven
Hi Andrew,
This patch series contains a few miscellaneous cleanups for the
Dhrystone benchmark test.
Thanks!
Geert Uytterhoeven (3):
lib: dhry: remove unneeded <linux/mutex.h>
lib: dhry: use ktime_ms_delta() helper
lib: dhry: add missing closing parenthesis
lib/Kconfig.debug | 2 +-
lib/dhry_1.c | 2 +-
lib/dhry_run.c | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
--
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] lib: dhry: remove unneeded <linux/mutex.h>
2024-01-22 14:50 [PATCH 0/3] lib: dhry: miscellaneous cleanups Geert Uytterhoeven
@ 2024-01-22 14:50 ` Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 2/3] lib: dhry: use ktime_ms_delta() helper Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 3/3] lib: dhry: add missing closing parenthesis Geert Uytterhoeven
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-01-22 14:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Geert Uytterhoeven
The Dhrystone benchmark test does not use mutexes.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
lib/dhry_run.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/dhry_run.c b/lib/dhry_run.c
index f15ac666e9d38bd2..e6a279dabf848eb3 100644
--- a/lib/dhry_run.c
+++ b/lib/dhry_run.c
@@ -10,7 +10,6 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
-#include <linux/mutex.h>
#include <linux/smp.h>
#define DHRY_VAX 1757
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] lib: dhry: use ktime_ms_delta() helper
2024-01-22 14:50 [PATCH 0/3] lib: dhry: miscellaneous cleanups Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 1/3] lib: dhry: remove unneeded <linux/mutex.h> Geert Uytterhoeven
@ 2024-01-22 14:50 ` Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 3/3] lib: dhry: add missing closing parenthesis Geert Uytterhoeven
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-01-22 14:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Geert Uytterhoeven
Use the existing ktime_ms_delta() helper instead of open-coding the same
operation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
lib/dhry_1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dhry_1.c b/lib/dhry_1.c
index 08edbbb19f573ff7..ca6c87232c580954 100644
--- a/lib/dhry_1.c
+++ b/lib/dhry_1.c
@@ -277,7 +277,7 @@ int dhry(int n)
dhry_assert_string_eq(Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING");
dhry_assert_string_eq(Str_2_Loc, "DHRYSTONE PROGRAM, 2'ND STRING");
- User_Time = ktime_to_ms(ktime_sub(End_Time, Begin_Time));
+ User_Time = ktime_ms_delta(End_Time, Begin_Time);
kfree(Ptr_Glob);
kfree(Next_Ptr_Glob);
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] lib: dhry: add missing closing parenthesis
2024-01-22 14:50 [PATCH 0/3] lib: dhry: miscellaneous cleanups Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 1/3] lib: dhry: remove unneeded <linux/mutex.h> Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 2/3] lib: dhry: use ktime_ms_delta() helper Geert Uytterhoeven
@ 2024-01-22 14:50 ` Geert Uytterhoeven
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2024-01-22 14:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, Geert Uytterhoeven
The help text for the Dhrystone benchmark test lacks a matching closing
parenthesis.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
lib/Kconfig.debug | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 79dc58b938f860d3..b93eccc2ebfb756a 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2141,7 +2141,7 @@ config TEST_DHRY
To run the benchmark, it needs to be enabled explicitly, either from
the kernel command line (when built-in), or from userspace (when
- built-in or modular.
+ built-in or modular).
Run once during kernel boot:
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-22 14:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 14:50 [PATCH 0/3] lib: dhry: miscellaneous cleanups Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 1/3] lib: dhry: remove unneeded <linux/mutex.h> Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 2/3] lib: dhry: use ktime_ms_delta() helper Geert Uytterhoeven
2024-01-22 14:50 ` [PATCH 3/3] lib: dhry: add missing closing parenthesis Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox