base: Don't scale affinities up to platform affinity space because, else, the affinities are mapped incorrectly when the habitat has less CPU cores than the physical machine.

This commit is contained in:
Michael Mueller
2025-12-08 18:39:15 +01:00
parent dd0c8b10dc
commit b8079ed15a

View File

@@ -267,7 +267,7 @@ Cpu_session_component::Cpu_session_component(Rpc_entrypoint &session_ep,
_thread_alloc(_md_alloc), _priority(0), _thread_alloc(_md_alloc), _priority(0),
/* map affinity to a location within the physical affinity space */ /* map affinity to a location within the physical affinity space */
_location(affinity.scale_to(platform().affinity_space())), _location(affinity.location()),
_trace_sources(trace_sources), _trace_sources(trace_sources),
_trace_control_area(_ram_alloc, local_rm), _trace_control_area(_ram_alloc, local_rm),