Skip to content

RFC x86, CPU: Run stuff on the BSP

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86, CPU: Drop second get_cpu_cap prototypearch/x86/kernel/cpu/cpu.h+0 -10 replies
2/2x86, cpu, amd: Add a per-vendor BSP functionarch/x86/kernel/cpu/amd.c arch/x86/kernel/cpu/common.c arch/x86/kernel/cpu/cpu.h+20 -84 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/2] x86, CPU: Run stuff on the BSP

From: Borislav Petkov <[email protected]>

Ok,

this is just an RFC and it builds but no further tests have been done on it. The first patch is a trivial cleanup and can go in.

For the second one I opted to look at c->x86_vendor in cpu/common.c which is not very clean but still simpler than adding a miscellaneous struct to contain the ->run_on_bsp() pointer and be statically allocated as __initdata, in the cpu_dev fashion. We can always do that later if there's more ofthe similar functionality needed.

Hmm, so please take a look and let me know if this is going in the right direction.

Thanks.