From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: rjw@rjwysocki.net
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thara Gopinath <thara.gopinath@linaro.org>,
Lina Iyer <ilina@codeaurora.org>,
Ram Chandrasekar <rkumbako@codeaurora.org>,
Zhang Rui <rui.zhang@intel.com>
Subject: [PATCH v5 1/4] units: Add Watt units
Date: Tue, 8 Dec 2020 17:41:42 +0100 [thread overview]
Message-ID: <20201208164145.19493-2-daniel.lezcano@linaro.org> (raw)
In-Reply-To: <20201208164145.19493-1-daniel.lezcano@linaro.org>
As there are the temperature units, let's add the Watt macros definition.
Cc: Thara Gopinath <thara.gopinath@linaro.org>
Cc: Lina Iyer <ilina@codeaurora.org>
Cc: Ram Chandrasekar <rkumbako@codeaurora.org>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.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
next prev parent reply other threads:[~2020-12-08 16:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 16:41 [PATCH v5 0/4] powercap/dtpm: Add the DTPM framework Daniel Lezcano
2020-12-08 16:41 ` Daniel Lezcano [this message]
2020-12-08 16:41 ` [PATCH v5 2/4] Documentation/powercap/dtpm: Add documentation for dtpm Daniel Lezcano
2020-12-08 16:41 ` [PATCH v5 3/4] powercap/drivers/dtpm: Add API for dynamic thermal power management Daniel Lezcano
2020-12-08 16:41 ` [PATCH v5 4/4] powercap/drivers/dtpm: Add CPU energy model based support Daniel Lezcano
2020-12-11 10:39 ` [PATCH v5 0/4] powercap/dtpm: Add the DTPM framework Daniel Lezcano
2020-12-11 19:15 ` Rafael J. Wysocki
2020-12-22 18:52 ` Rafael J. Wysocki
2020-12-23 12:34 ` Daniel Lezcano
2020-12-24 18:46 ` Pavel Machek
2020-12-25 11:54 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201208164145.19493-2-daniel.lezcano@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=ilina@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rkumbako@codeaurora.org \
--cc=rui.zhang@intel.com \
--cc=thara.gopinath@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).