UPSTREAM: 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>

Link: https://lkml.org/lkml/2020/12/8/736
Bug: 182396925
Change-Id: Iabcd01a02f52c55ba018aca59104807778f1d866
(cherry picked from commit 2ee5f8f05949735fa2f4c463a5e13fcb3660c719)
Signed-off-by: Ram Chandrasekar <quic_rkumbako@quicinc.com>
This commit is contained in:
Daniel Lezcano
2020-12-08 17:41:42 +01:00
committed by Greg Kroah-Hartman
parent 7847beabbe
commit b2267c21c0

View File

@@ -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)