Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

units: Add BYTES_PER_*BIT

There is going to be a new user of the BYTES_PER_[K/M/G]BIT definition
besides possibly existing ones. Add them to the header.

Signed-off-by: Damian Muszynski <damian.muszynski@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Tero Kristo <tero.kristo@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Damian Muszynski and committed by
Herbert Xu
e8eed5f7 8e6857f7

+4
+4
include/linux/units.h
··· 31 31 #define MICROWATT_PER_MILLIWATT 1000UL 32 32 #define MICROWATT_PER_WATT 1000000UL 33 33 34 + #define BYTES_PER_KBIT (KILO / BITS_PER_BYTE) 35 + #define BYTES_PER_MBIT (MEGA / BITS_PER_BYTE) 36 + #define BYTES_PER_GBIT (GIGA / BITS_PER_BYTE) 37 + 34 38 #define ABSOLUTE_ZERO_MILLICELSIUS -273150 35 39 36 40 static inline long milli_kelvin_to_millicelsius(long t)