diff options
author | 2020-12-08 17:41:42 +0100 | |
---|---|---|
committer | 2020-12-22 19:50:40 +0100 | |
commit | 2ee5f8f05949735fa2f4c463a5e13fcb3660c719 (patch) | |
tree | 98a8b4b0f88aab03aa6a20cedfafddf2a3479f5a /include/linux/units.h | |
parent | Merge tag 'pm-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff) | |
download | linux-2ee5f8f05949735fa2f4c463a5e13fcb3660c719.tar.gz linux-2ee5f8f05949735fa2f4c463a5e13fcb3660c719.tar.bz2 linux-2ee5f8f05949735fa2f4c463a5e13fcb3660c719.zip |
units: Add Watt units
As there are the temperature units, let's add the Watt macros definition.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/units.h')
-rw-r--r-- | include/linux/units.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) |