[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201201192801.27607-2-daniel.lezcano@linaro.org>
Date: Tue, 1 Dec 2020 20:27:58 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: rjw@...ysocki.net
Cc: ulf.hansson@...aro.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, daniel.lezcano@...aro.org,
lukasz.luba@....com, Thara Gopinath <thara.gopinath@...aro.org>,
Lina Iyer <ilina@...eaurora.org>,
Ram Chandrasekar <rkumbako@...eaurora.org>,
Zhang Rui <rui.zhang@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Akinobu Mita <akinobu.mita@...il.com>
Subject: [PATCH v4 1/4] units: Add Watt units
As there are the temperature units, let's add the Watt macros definition.
Cc: Thara Gopinath <thara.gopinath@...aro.org>
Cc: Lina Iyer <ilina@...eaurora.org>
Cc: Ram Chandrasekar <rkumbako@...eaurora.org>
Cc: Zhang Rui <rui.zhang@...el.com>
Cc: Lukasz Luba <lukasz.luba@....com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@....com>
---
include/linux/units.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/units.h b/include/linux/units.h
index aaf716364ec3..92c234e71cab 100644
--- a/include/linux/units.h
+++ b/include/linux/units.h
@@ -4,6 +4,10 @@
#include <linux/kernel.h>
+#define MILLIWATT_PER_WATT 1000L
+#define MICROWATT_PER_MILLIWATT 1000L
+#define MICROWATT_PER_WATT 1000000L
+
#define ABSOLUTE_ZERO_MILLICELSIUS -273150
static inline long milli_kelvin_to_millicelsius(long t)
--
2.17.1
Powered by blists - more mailing lists