Takoroka
a89892695e
kernel: spin briefly before sleeping on a contended KSpinLock
...
The scheduler lock is taken by every emulated core thousands of times a
frame (title 1's job system: WaitForAddress / SignalToAddress / yield)
and held for microseconds. As a std::mutex, a contended Lock put the
host thread to sleep at once. Now a three-state futex lock: one atomic
op uncontended, ~128 pause spins when contended, then
std::atomic::wait. Time blocked in Lock fell ~20-25% on title 1's cores.
2026-10-28 23:46:53 -04:00
..
arch /arm64
general: Convert source file copyright comments over to SPDX
2022-04-23 05:55:32 -04:00
board/nintendo /nx
Switch 2: back GPU-only regions outside the application pool
2026-10-28 12:03:11 -04:00
init
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
svc
kernel: EDEN_NX2_MEM_TRACE logs heap, physical memory and memory info requests
2026-10-28 12:03:10 -04:00
code_set.cpp
general: Convert source file copyright comments over to SPDX
2022-04-23 05:55:32 -04:00
code_set.h
[core/loader] prevent program_image reallocations in NSO+KIP loading methods ( #3639 )
2026-02-28 01:06:33 +01:00
global_scheduler_context.cpp
core: emulate six CPU cores
2026-10-28 11:29:20 -04:00
global_scheduler_context.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
initial_process.h
kernel: reshuffle ini1 size, add slab clear note
2023-10-20 02:34:15 -04:00
k_address_arbiter.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_address_arbiter.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_address_space_info.cpp
core: Define HAS_NCE macro
2023-11-25 00:47:36 -05:00
k_address_space_info.h
general: fix type inconsistencies
2023-03-07 20:05:19 -05:00
k_affinity_mask.h
kernel: convert KPort, KSession
2023-03-12 22:06:53 -04:00
k_auto_object.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_auto_object.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_auto_object_container.cpp
kernel: use simple mutex for object list container
2023-12-23 16:26:07 -05:00
k_auto_object_container.h
kernel: use simple mutex for object list container
2023-12-23 16:26:07 -05:00
k_capabilities.cpp
[hle] make HBLoader work, add -hlaunch option ( #3981 )
2026-05-19 23:35:53 +02:00
k_capabilities.h
kernel: add KPageTableBase
2023-11-10 12:01:35 -05:00
k_class_token.cpp
core: hle: kernel: Address review comments.
2022-11-05 12:23:47 -04:00
k_class_token.h
core: hle: kernel: Add KSystemResource.
2022-11-03 21:17:07 -07:00
k_client_port.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_client_port.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_client_session.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_client_session.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_code_memory.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_code_memory.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_condition_variable.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_condition_variable.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_debug.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_device_address_space.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_device_address_space.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_dynamic_page_manager.h
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_dynamic_resource_manager.h
core: hle: kernel: k_dynamic_resource_manager: Add KBlockInfoManager, KBlockInfoSlabHeap.
2022-11-03 21:17:06 -07:00
k_dynamic_slab_heap.h
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_event.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_event.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_event_info.h
kernel: remove general boost lists
2023-04-29 22:11:32 -04:00
k_handle_table.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_handle_table.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_hardware_timer.cpp
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_hardware_timer.h
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_hardware_timer_base.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_interrupt_manager.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_interrupt_manager.h
core: hle: kernel: k_thread: Implement thread termination DPC.
2022-10-18 19:13:34 -07:00
k_light_client_session.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_client_session.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_condition_variable.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_condition_variable.h
kernel: convert KConditionVariable, KLightConditionVariable, KLightLock
2023-03-12 22:06:53 -04:00
k_light_lock.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_lock.h
kernel: convert KConditionVariable, KLightConditionVariable, KLightLock
2023-03-12 22:06:53 -04:00
k_light_server_session.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_server_session.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_session.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_light_session.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_memory_block.h
Switch 2: native memory/images, GPU-accessible attribute, TSG subcontexts, syncpoint shim
2026-10-27 19:30:20 -04:00
k_memory_block_manager.cpp
kernel: optimize page free on shutdown
2024-01-12 19:19:07 -05:00
k_memory_block_manager.h
kernel: optimize page free on shutdown
2024-01-12 19:19:07 -05:00
k_memory_layout.cpp
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_memory_layout.h
fix more vulkan issues and remove vertex input ( #117 )
2025-05-19 21:28:16 +00:00
k_memory_manager.cpp
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_memory_manager.h
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_memory_region.h
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_memory_region_type.h
kernel: update KMemoryRegionType values
2023-10-20 02:34:15 -04:00
k_object_name.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_object_name.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_page_bitmap.h
[common] unify std::random_device ( #3801 )
2026-03-31 20:12:41 +02:00
k_page_buffer.cpp
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_page_buffer.h
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_page_group.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_page_group.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_page_heap.cpp
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_page_heap.h
[meta] fix license headers ( #2547 )
2025-09-21 21:58:59 +02:00
k_page_table.h
kernel: add KPageTableBase
2023-11-10 12:01:35 -05:00
k_page_table_base.cpp
Switch 2: native memory/images, GPU-accessible attribute, TSG subcontexts, syncpoint shim
2026-10-27 19:30:20 -04:00
k_page_table_base.h
[common/core/dynarmic] Optimize page table allocations ( #4219 )
2026-09-09 21:35:49 +02:00
k_page_table_manager.h
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_page_table_slab_heap.h
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
k_port.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_port.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_priority_queue.h
[common] replace Common::(DerivedFrom, IsArithmetic, Size, ConvertibleTo, IsIntegral) with libstdc++ equivalents ( #290 )
2025-11-07 17:03:01 +01:00
k_process.cpp
Switch 2: window image sizes, queue semaphores, built-in fonts, memory budget
2026-10-27 17:04:06 -04:00
k_process.h
[common] Switch to boost::unordered_flat containers ( #4326 )
2026-08-31 02:58:09 +02:00
k_process_page_table.h
[kernel, hle] Initial 22.0.0 kernel changes and cmd stubs ( #3761 )
2026-05-05 01:29:46 +02:00
k_readable_event.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_readable_event.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_resource_limit.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_resource_limit.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_scheduler.cpp
[k_scheduler] fix for libc++ that lazily initializes mutexes ( #4447 )
2026-09-17 00:28:37 +02:00
k_scheduler.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_scheduler_lock.h
kernel: convert KAbstractSchedulerLock
2023-03-12 22:06:53 -04:00
k_scoped_lock.h
kernel: conver KScopedLock, KScopedResourceReservation, KSessionRequest, KSharedMemory, KSpinLock
2023-03-12 22:06:53 -04:00
k_scoped_resource_reservation.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_scoped_scheduler_lock_and_sleep.h
kernel: remove relative task registration
2023-08-14 18:12:06 -04:00
k_server_port.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_server_port.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_server_session.cpp
[kernel, service] Return ResultSessionClosed when a session is closed ( #4318 )
2026-08-30 08:00:18 +02:00
k_server_session.h
[kernel, service] Return ResultSessionClosed when a session is closed ( #4318 )
2026-08-30 08:00:18 +02:00
k_session.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_session.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_session_request.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_session_request.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_shared_memory.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_shared_memory.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_shared_memory_info.h
kernel: remove general boost lists
2023-04-29 22:11:32 -04:00
k_slab_heap.h
[common] Replace Common::SpinLock with std::mutex ( #4436 )
2026-09-16 15:35:13 +02:00
k_spin_lock.cpp
kernel: spin briefly before sleeping on a contended KSpinLock
2026-10-28 23:46:53 -04:00
k_spin_lock.h
kernel: spin briefly before sleeping on a contended KSpinLock
2026-10-28 23:46:53 -04:00
k_synchronization_object.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_synchronization_object.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_system_control.h
general: Convert source file copyright comments over to SPDX
2022-04-23 05:55:32 -04:00
k_system_resource.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_system_resource.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_thread.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_thread.h
[common] Replace Common::SpinLock with std::mutex ( #4436 )
2026-09-16 15:35:13 +02:00
k_thread_local_page.cpp
scope_exit: Make constexpr
2024-02-19 16:00:46 +01:00
k_thread_local_page.h
[common] remove ranges polyfill ( #2546 )
2025-09-24 19:29:48 +02:00
k_thread_queue.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_thread_queue.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_timer_task.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_trace.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_transfer_memory.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_transfer_memory.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_typed_address.h
[*] fix missing '#pragma once' on header files ( #4014 )
2026-05-26 06:37:59 +02:00
k_worker_task.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_worker_task_manager.cpp
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
k_worker_task_manager.h
kernel: remove kernel_
2023-03-12 22:09:09 -04:00
kernel.cpp
core: emulate six CPU cores
2026-10-28 11:29:20 -04:00
kernel.h
[common] Switch to boost::unordered_flat containers ( #4326 )
2026-08-31 02:58:09 +02:00
memory_types.h
kernel: use KTypedAddress for addresses
2023-03-22 09:35:16 -04:00
message_buffer.h
k_server_session: process for guest servers
2023-12-22 21:52:49 -05:00
physical_core.cpp
Performance diagnostics and small wins for title 1
2026-10-28 16:44:24 -04:00
physical_core.h
Performance diagnostics and small wins for title 1
2026-10-28 16:44:24 -04:00
slab_helpers.h
[video_core, hle] remove redundant parent references in system structs ( #3908 )
2026-06-23 06:31:25 +02:00
svc.cpp
Performance diagnostics and small wins for title 1
2026-10-28 16:44:24 -04:00
svc.h
[tools, hle/kernel] generate condensed version of svc.cpp; move svc_generator.py and generate_converters.py to tools ( #2791 )
2025-11-07 17:00:53 +01:00
svc_common.h
core: hle: kernel: svc_common: Add WaitInfinite & cleanup.
2022-10-18 19:13:34 -07:00
svc_results.h
k_server_session: process for guest servers
2023-12-22 21:52:49 -05:00
svc_types.h
Switch 2: native memory/images, GPU-accessible attribute, TSG subcontexts, syncpoint shim
2026-10-27 19:30:20 -04:00
svc_version.h
[kernel, hle] Initial 22.0.0 kernel changes and cmd stubs ( #3761 )
2026-05-05 01:29:46 +02:00