[PATCH] iopoll: include <linux/ktime.h> instead of <linux/hrtimer.h>

Subsystems: the rest

STALE3549d

3 messages, 1 author, 2017-01-26 · open the first message on its own page

[PATCH] iopoll: include <linux/ktime.h> instead of <linux/hrtimer.h>

From: Masahiro Yamada <hidden>
Date: 2016-12-14 01:36:08

The timer APIs this header needs are ktime_get(), ktime_add_us(),
and ktime_compare().  So, including <linux/ktime.h> seems enough.
This commit will cut unnecessary header file parsing.

Signed-off-by: Masahiro Yamada <redacted>
---

I was not quite sure whom I should send this patch to.
I am sending this to Will Deacon because commit 54c523127bcc
("iopoll: Introduce memory-mapped IO polling macros") was applied
by him.


 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 1c30014..d29e1e2 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -17,7 +17,7 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/hrtimer.h>
+#include <linux/ktime.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
-- 
2.7.4

Re: [PATCH] iopoll: include <linux/ktime.h> instead of <linux/hrtimer.h>

From: Masahiro Yamada <hidden>
Date: 2017-01-23 09:55:00

Hi.

2016-12-14 10:33 GMT+09:00 Masahiro Yamada [off-list ref]:
The timer APIs this header needs are ktime_get(), ktime_add_us(),
and ktime_compare().  So, including <linux/ktime.h> seems enough.
This commit will cut unnecessary header file parsing.

Signed-off-by: Masahiro Yamada <redacted>

No comment for this patch?

Will,
Could you check this patch, please?


quoted hunk
I was not quite sure whom I should send this patch to.
I am sending this to Will Deacon because commit 54c523127bcc
("iopoll: Introduce memory-mapped IO polling macros") was applied
by him.


 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 1c30014..d29e1e2 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -17,7 +17,7 @@

 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/hrtimer.h>
+#include <linux/ktime.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
--
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


-- 
Best Regards
Masahiro Yamada

Re: [PATCH] iopoll: include <linux/ktime.h> instead of <linux/hrtimer.h>

From: Masahiro Yamada <hidden>
Date: 2017-01-26 09:39:52

Hi.

2017-01-23 18:54 GMT+09:00 Masahiro Yamada [off-list ref]:
Hi.

2016-12-14 10:33 GMT+09:00 Masahiro Yamada [off-list ref]:
quoted
The timer APIs this header needs are ktime_get(), ktime_add_us(),
and ktime_compare().  So, including <linux/ktime.h> seems enough.
This commit will cut unnecessary header file parsing.

Signed-off-by: Masahiro Yamada <redacted>

No comment for this patch?

Will,
Could you check this patch, please?



This patch was picked up by Andrew Morton
and it is now in linux-next.

Thank you, Andrew!



quoted
I was not quite sure whom I should send this patch to.
I am sending this to Will Deacon because commit 54c523127bcc
("iopoll: Introduce memory-mapped IO polling macros") was applied
by him.


 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 1c30014..d29e1e2 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -17,7 +17,7 @@

 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/hrtimer.h>
+#include <linux/ktime.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
--
2.7.4



-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help