Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Lezcano and committed by
Rafael J. Wysocki
2ee5f8f0 b4ec8054

+4
+4
include/linux/units.h
··· 4 4 5 5 #include <linux/kernel.h> 6 6 7 + #define MILLIWATT_PER_WATT 1000L 8 + #define MICROWATT_PER_MILLIWATT 1000L 9 + #define MICROWATT_PER_WATT 1000000L 10 + 7 11 #define ABSOLUTE_ZERO_MILLICELSIUS -273150 8 12 9 13 static inline long milli_kelvin_to_millicelsius(long t)