[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <318f6f32-d1d5-d471-edf1-a3e927ccf97f@arm.com>
Date: Tue, 10 Nov 2020 10:02:00 +0000
From: Lukasz Luba <lukasz.luba@....com>
To: Daniel Lezcano <daniel.lezcano@...aro.org>
Cc: rafael@...nel.org, srinivas.pandruvada@...ux.intel.com,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
rui.zhang@...el.com, Andrew Morton <akpm@...ux-foundation.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Akinobu Mita <akinobu.mita@...il.com>
Subject: Re: [PATCH 1/4] units: Add Watt units
On 10/6/20 1:20 PM, Daniel Lezcano wrote:
> As there are the temperature units, let's add the Watt macros definition.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
> ---
> 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)
>
Reviewed-by: Lukasz Luba <lukasz.luba@....com>
Regards,
Lukasz
Powered by blists - more mailing lists