powercap: intel_rapl: Allow probing without CPUID match
authorZhang Rui <rui.zhang@intel.com>
Wed, 19 Apr 2023 02:44:06 +0000 (10:44 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 May 2023 16:46:19 +0000 (18:46 +0200)
commit1488ac990ac886b1209aa9f94c0c66022bcc8827
treed2309a7ad7f2d4a8d3ec3dec5778031f1e1f79f1
parent31cb1304ad8bd27b7d2abd8669fb887fb47d8eaf
powercap: intel_rapl: Allow probing without CPUID match

Currently, CPU model checks is used to
1. get proper rapl_defaults callbacks for RAPL MSR/MMIO Interface.
2. create a platform device node for the intel_rapl_msr driver to probe.

Both of these are only mandatory for the RAPL MSR/MMIO Interface.

Make the CPUID match optional.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl_common.c