Skip to content

cpuhp: fix some st->target issues

Phil Auld lkml 6 versions – Applied

Status from this message: The following commit has been merged into the smp/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 1 replyApplied
  2. v4 posting 2/22 patches 1 replySuperseded
  3. v4 posting 1/22 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches4 repliesSuperseded
v22 patches6 repliesSuperseded
v11 patch8 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2cpuhp: Make target_store() a nop when target == statekernel/cpu.c+3 -10 replies
2/2cpuhp: Set cpuhp target for boot cpukernel/cpu.c+1 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchValentin Schneider
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] cpuhp: fix some st->target issues

Fix a few cpuhp related issues.

The first prevents target_store() from calling cpu_down() when target == state which prevents the cpu being incorrectly marked as dying. The second just makes the boot cpu have a valid cpuhp target rather than 0 (CPU_OFFLINE) while being in state CPU_ONLINE.

v3: Added code to make sure st->target == target in the nop case.

v4: Use WARN_ON in the case where state == target but st->target does not.

v5: Fixed lowercase on first patch title and cleaned up cover letter. Rebased on v6.1-rc5.

Phil Auld (2):
cpuhp: Make target_store() a nop when target == state
cpuhp: Set cpuhp target for boot cpu

 cpu.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1