Re: [PATCH 1/2] units: Add the HZ_PER_KHZ macro

Andrew Morton
2021-03-05T01:21:23Z

On Thu, 4 Mar 2021 13:41:27 +0100 Daniel Lezcano <daniel.lezcano@linaro.org> wrote:

> > Also, why make them signed types? Negative Hz is physically
> > nonsensical. If that upsets some code somewhere because it was dealing
> > with signed types then, well, that code needed fixing anyway.
> >
> > Ditto MILLIWATT_PER_WATT and friends, sigh.
>
> At the first glance converting to unsigned long should not hurt the
> users of this macro.
>
> The current series introduces the macro and its usage but by converting
> the existing type.
>
> Is it ok if I send a separate series to change the units from L to UL?

That's the way to do it...