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

From: Andrew Morton
Date: Thu Mar 04 2021 - 20:21:23 EST


On Thu, 4 Mar 2021 13:41:27 +0100 Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> 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...