Merge branches 'powercap' and 'pm-misc'
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Feb 2021 17:50:01 +0000 (18:50 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Feb 2021 17:50:01 +0000 (18:50 +0100)
* powercap:
  powercap: intel_rapl: Use topology interface in rapl_init_domains()
  powercap: intel_rapl: Use topology interface in rapl_add_package()
  powercap/intel_rapl: add support for AlderLake Mobile
  powercap/drivers/dtpm: Fix size of object being allocated
  powercap/drivers/dtpm: Fix an IS_ERR() vs NULL check
  powercap/drivers/dtpm: Fix some missing unlock bugs
  powercap/drivers/dtpm: Fix a double shift bug
  powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols
  powercap/drivers/dtpm: Add CPU energy model based support
  powercap/drivers/dtpm: Add API for dynamic thermal power management
  Documentation/powercap/dtpm: Add documentation for dtpm
  units: Add Watt units

* pm-misc:
  PM: Kconfig: remove unneeded "default n" options
  PM: EM: update Kconfig description and drop "default n" option

1  2  3 
include/linux/units.h

@@@@ -2,8 -2,12 -2,8 +2,12 @@@@
   #ifndef _LINUX_UNITS_H
   #define _LINUX_UNITS_H
   
 - #include <linux/kernel.h>
 + #include <linux/math.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)