Skip to content

Commit

Permalink
meta-ampere: mtmitchell: adc: run before ampere-cpu-present
Browse files Browse the repository at this point in the history
The ADC service requires `PropertyChanged` signal to create CPUPresent
state in ADC code. The ADC service should be configured to run before
Ampere-cpu-present service which creates Cpu Present D-Bus property
for Ampere CPU.
This commit adds
`Before=xyz.openbmc_project.Ampere.CpuPresent.service` to adc service
dependence to make sure it run before Ampere CPU Present.

Tested:
1. Stress AC 100 times.
2. The ADC sensors of S0/S1 should always be available.

Signed-off-by: Thu Nguyen <[email protected]>
  • Loading branch information
ThuBaNguyen authored and vkphong-ampere committed Dec 27, 2023
1 parent da72d76 commit 1d1cc6c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Unit]
Before=xyz.openbmc_project.Ampere.CpuPresent.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += " file://xyz.openbmc_project.adcsensor-override.conf"

FILES:${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.adcsensor.service.d"

do_install:append() {
install -d ${D}${systemd_system_unitdir}/xyz.openbmc_project.adcsensor.service.d
install -m 644 ${WORKDIR}/xyz.openbmc_project.adcsensor-override.conf \
${D}${systemd_system_unitdir}/xyz.openbmc_project.adcsensor.service.d
}

0 comments on commit 1d1cc6c

Please sign in to comment.