diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-01-12 16:46:09 +0300 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-01-13 20:33:37 +0300 |
| commit | 5083dba0fde5446c00ee1a82a3911c8f88a2c72e (patch) | |
| tree | 1eb8426807e73d06dff86cf2bb5b96281304c47d /include/linux | |
| parent | e2370b8b2cf1f60747594ec6b52b7c5542523549 (diff) | |
| download | linux-5083dba0fde5446c00ee1a82a3911c8f88a2c72e.tar.xz | |
units: Add HZ_PER_GHZ
The is going to be a new user of the HZ_PER_GHZ definition besides
possibly existing ones. Add that one to the header.
While at it, split Hz and kHz groups of the multipliers for better
maintenance and readability.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260112134900.4142954-2-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/units.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/units.h b/include/linux/units.h index 00e15de33eca..0c296a004e89 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -25,9 +25,12 @@ #define MICROHZ_PER_HZ 1000000UL #define MILLIHZ_PER_HZ 1000UL +/* Hz based multipliers */ #define HZ_PER_KHZ 1000UL #define HZ_PER_MHZ 1000000UL +#define HZ_PER_GHZ 1000000000UL +/* kHz based multipliers */ #define KHZ_PER_MHZ 1000UL #define KHZ_PER_GHZ 1000000UL |
