Skip to content

Commit

Permalink
Use utils::get_cpu_brand when applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed May 1, 2020
1 parent f6200ba commit 3103560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ void thread_ctrl::detect_cpu_layout()
if (!g_native_core_layout.compare_and_swap_test(native_core_arrangement::undefined, native_core_arrangement::generic))
return;

const auto system_id = utils::get_system_info();
const auto system_id = utils::get_cpu_brand();
if (system_id.find("Ryzen") != umax)
{
g_native_core_layout.store(native_core_arrangement::amd_ccx);
Expand Down Expand Up @@ -2226,7 +2226,7 @@ u64 thread_ctrl::get_affinity_mask(thread_class group)
case native_core_arrangement::amd_ccx:
{
u64 spu_mask, ppu_mask, rsx_mask;
const auto system_id = utils::get_system_info();
const auto system_id = utils::get_cpu_brand();
if (thread_count >= 32)
{
if (system_id.find("3950X") != umax)
Expand Down

0 comments on commit 3103560

Please sign in to comment.