mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
cell/scheduler: Manage thread placement depending on cpu hardware
This commit is contained in:
parent
54fbde0de1
commit
cbc8bf01a1
13 changed files with 185 additions and 40 deletions
|
@ -334,6 +334,15 @@ extern void ppu_breakpoint(u32 addr)
|
|||
}
|
||||
}
|
||||
|
||||
void ppu_thread::on_spawn()
|
||||
{
|
||||
if (g_cfg.core.thread_scheduler_enabled)
|
||||
{
|
||||
// Bind to primary set
|
||||
thread_ctrl::set_thread_affinity_mask(thread_ctrl::get_affinity_mask(thread_class::ppu));
|
||||
}
|
||||
}
|
||||
|
||||
void ppu_thread::on_init(const std::shared_ptr<void>& _this)
|
||||
{
|
||||
if (!stack_addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue