cpusensor: Change cpusensor to intelcpusensor
cpusensor class is specifically used for Intel CPU. The name of this
class and the build option should be changed to reflect with their
role.
The patch set https://gerrit.openbmc.org/c/openbmc/openbmc/+/56096 is
required to prevent the build error in openbmc source.
Tested:
1. No build error.
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Change-Id: I1f941fffa10222cdac908fd763dccc866ba0e8a6
diff --git a/service_files/meson.build b/service_files/meson.build
index 37bb261..5f5b78c 100644
--- a/service_files/meson.build
+++ b/service_files/meson.build
@@ -1,6 +1,6 @@
unit_files = [
['adc', 'xyz.openbmc_project.adcsensor.service'],
- ['cpu', 'xyz.openbmc_project.cpusensor.service'],
+ ['intel-cpu', 'xyz.openbmc_project.intelcpusensor.service'],
['exit-air', 'xyz.openbmc_project.exitairsensor.service'],
['fan', 'xyz.openbmc_project.fansensor.service'],
['hwmon-temp', 'xyz.openbmc_project.hwmontempsensor.service'],
diff --git a/service_files/xyz.openbmc_project.adcsensor.service b/service_files/xyz.openbmc_project.adcsensor.service
index 6ca7049..bc07f6e 100644
--- a/service_files/xyz.openbmc_project.adcsensor.service
+++ b/service_files/xyz.openbmc_project.adcsensor.service
@@ -1,7 +1,7 @@
[Unit]
Description=Adc Sensor
StopWhenUnneeded=false
-Before=xyz.openbmc_project.cpusensor.service
+Before=xyz.openbmc_project.intelcpusensor.service
Requires=xyz.openbmc_project.EntityManager.service
After=xyz.openbmc_project.EntityManager.service
diff --git a/service_files/xyz.openbmc_project.cpusensor.service b/service_files/xyz.openbmc_project.intelcpusensor.service
similarity index 78%
rename from service_files/xyz.openbmc_project.cpusensor.service
rename to service_files/xyz.openbmc_project.intelcpusensor.service
index 31b7bbd..8b5be69 100644
--- a/service_files/xyz.openbmc_project.cpusensor.service
+++ b/service_files/xyz.openbmc_project.intelcpusensor.service
@@ -1,5 +1,5 @@
[Unit]
-Description=CPU Sensor
+Description=Intel CPU Sensor
StopWhenUnneeded=false
Requires=xyz.openbmc_project.EntityManager.service
After=xyz.openbmc_project.EntityManager.service
@@ -8,7 +8,7 @@
Restart=always
RestartSec=5
StartLimitBurst=10
-ExecStart=/usr/bin/cpusensor
+ExecStart=/usr/bin/intelcpusensor
[Install]
WantedBy=multi-user.target