[coreboot-gerrit] Change in coreboot[master]: add USEC_TO_MSEC macro (microseconds -> milliseconds).

Caveh Jalali (Code Review) gerrit at coreboot.org
Sat Aug 5 00:33:15 CEST 2017


Caveh Jalali has uploaded this change for review. ( https://review.coreboot.org/20882


Change subject: add USEC_TO_MSEC macro (microseconds -> milliseconds).
......................................................................

add USEC_TO_MSEC macro (microseconds -> milliseconds).

Change-Id: I489dc2d1ff55d137936acec74ac875dc7fbc1713
Signed-off-by: Caveh Jalali <caveh at google.com>
---
M payloads/libpayload/include/stddef.h
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/82/20882/1

diff --git a/payloads/libpayload/include/stddef.h b/payloads/libpayload/include/stddef.h
index 3288487..ef624a9 100644
--- a/payloads/libpayload/include/stddef.h
+++ b/payloads/libpayload/include/stddef.h
@@ -28,3 +28,5 @@
 #define KHz (1000)
 #define MHz (1000*KHz)
 #define GHz (1000*MHz)
+
+#define USEC_TO_MSEC(us) ((us) / 1000)

-- 
To view, visit https://review.coreboot.org/20882
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I489dc2d1ff55d137936acec74ac875dc7fbc1713
Gerrit-Change-Number: 20882
Gerrit-PatchSet: 1
Gerrit-Owner: Caveh Jalali <caveh at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170804/97603a84/attachment-0001.html>


More information about the coreboot-gerrit mailing list