TaiJu Wu
c92699626c
kernel: timeslicing: start one slice per uniprocessor context switch
...
On uniprocessor builds, update_cache() starts the time slice of the
thread it picks to preempt _current, and do_swap() starts it again when
it switches to that thread. Each start aborts and adds the slice
timeout, which reprograms the system timer.
do_swap() starts the slice for SMP, where the scheduler state can
change on another CPU and a switch is only known at the last moment.
Only do it there: on uniprocessor builds every switch goes to the
thread update_cache() picked, the only place that sets
_kernel.ready_q.cache.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2026-10-30 10:14:03 -04:00
..
include
kernel: timeslicing: start one slice per uniprocessor context switch
2026-10-30 10:14:03 -04:00
paging
kernel: mm: rename z_num_pagefaults_get to k_mem_num_*
2024-06-12 21:13:26 -04:00
smp
kernel: move the SMP scheduler paths behind hooks in ksmp.h
2026-10-28 22:42:44 -04:00
sys
kernel: thread_entry: fix include for TLS stack canaries
2026-08-19 18:41:05 -04:00
timeout
kernel: move timeout backends into kernel/timeout/
2026-10-08 15:08:23 +02:00
userspace
kernel: userspace: keep a thread in its domain when moving it fails
2026-10-29 19:41:56 -04:00
busy_wait.c
kernel: timer: Include include/zephyr/sys/clock.h
2026-07-30 07:45:05 -05:00
CMakeLists.txt
kernel: move the sleep API declarations to their own header
2026-08-20 08:52:31 +02:00
compiler_stack_protect.c
kernel: fix doxygen warnings exposed by adding kernel/ to docs INPUT
2026-07-01 17:05:28 -04:00
condvar.c
kernel: obj_core: initialize object types at build time
2026-09-29 15:50:16 +02:00
deadline.c
kernel: Update _sched_spinlock comment references
2026-08-21 16:17:54 +02:00
device.c
device: make z_impl_device_is_ready() a static inline
2026-10-28 22:52:43 -04:00
dynamic.c
kernel: dynamic: fix kernel stack size overflow
2026-08-21 16:20:34 +02:00
dynamic_disabled.c
kernel: harden thread stack syscall verifiers
2026-09-28 07:36:22 -04:00
events.c
kernel: obj_core: initialize object types at build time
2026-09-29 15:50:16 +02:00
fatal.c
sys: printk: stop locking once a fatal error is being reported
2026-08-19 17:09:07 +01:00
float.c
build: namespace the generated headers with zephyr/
2024-05-28 22:03:55 +02:00
hardening.yaml
scripts: kconfig: hardenconfig: switch to YAML hardening database
2026-09-29 10:40:32 +02:00
idle.c
kernel: timeout: report the no-deadline case from the idle path
2026-08-12 19:27:28 -04:00
init.c
kernel: move the SMP scheduler paths behind hooks in ksmp.h
2026-10-28 22:42:44 -04:00
irq_offload.c
kernel: add closing comments to config endifs
2024-03-25 18:03:31 -04:00
Kconfig
random: use HAS_RANDOM_GENERATOR
2026-10-28 22:40:20 -04:00
Kconfig.device
kernel: Kconfig.device: fix CONFIG_DEVICE_DEINIT_SUPPORT help text
2026-03-08 16:36:39 +01:00
Kconfig.init
arch: add firmware argument handler hook
2026-09-18 11:14:23 +01:00
Kconfig.obj_core
kernel: queue: integrate queues into the object core framework
2026-09-29 15:50:16 +02:00
Kconfig.vm
kernel: mmu: remove LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT
2026-06-23 09:11:08 -04:00
kheap.c
kernel: kheap: honor alloc deadlines and zero-size realloc
2026-10-28 22:37:28 -04:00
mailbox.c
kernel: obj_core: initialize object types at build time
2026-09-29 15:50:16 +02:00
main_weak.c
kernel: Switch main return type from void to int
2023-04-14 07:49:41 +09:00
mem_slab.c
kernel: obj_core: unregister objects in released heap and slab memory
2026-09-29 15:50:16 +02:00
mempool.c
kernel: k_free() no longer calls z_waitq_head()
2026-08-21 16:17:54 +02:00
mmu.c
kernel: mmu: update flags of each page in k_mem_update_flags()
2026-10-28 22:46:24 -04:00
msg_q.c
kernel: obj_core: unregister objects the kernel releases
2026-09-29 15:50:16 +02:00
mutex.c
kernel: mutex: refuse user mode re-init of a locked mutex
2026-10-16 09:18:48 +02:00
nothread.c
tracing: give k_sleep_ticks() its own trace point
2026-08-20 08:52:31 +02:00
obj_core.c
kernel: obj_core: allow several permanent object ranges per type
2026-09-29 15:50:16 +02:00
pipe.c
kernel: pipe: bound buffer size in k_pipe_init verifier
2026-10-28 22:42:01 -04:00
poll.c
kernel: poll: treat a closed pipe as readable
2026-10-20 17:22:01 +02:00
priority_queues.c
kernel: priority queues: declare as static inlines
2024-04-22 16:40:11 -04:00
queue.c
kernel: queue: integrate queues into the object core framework
2026-09-29 15:50:16 +02:00
sched.c
kernel: move the SMP scheduler paths behind hooks in ksmp.h
2026-10-28 22:42:44 -04:00
scheduler.c
kernel: Update _sched_spinlock comment references
2026-08-21 16:17:54 +02:00
sem.c
kernel: obj_core: initialize object types at build time
2026-09-29 15:50:16 +02:00
sleep.c
kernel: Add and use z_swap_locked()
2026-08-21 16:17:54 +02:00
spinlock_validate.c
kernel: spinlock: read the current thread from the per-CPU record
2026-09-24 15:14:33 -05:00
stack.c
kernel: stack: propagate errors from pending a pop
2026-10-20 17:22:24 +02:00
sys_clock_hw_cycles.c
kernel: refactor sys_clock_hw_cycles_per_sec runtime support
2026-02-20 13:31:07 +01:00
system_work_q.c
kernel: system_work_q: register init via kernel init hook
2026-07-06 15:10:55 -04:00
thread.c
kernel: move the SMP scheduler paths behind hooks in ksmp.h
2026-10-28 22:42:44 -04:00
thread_monitor.c
kernel: thread_monitor: reafactor and remove duplicate code
2025-04-04 07:42:20 +02:00
timeout.c
kernel: timeout: report the decoded expiry for absolute timeouts
2026-10-28 22:42:31 -04:00
timer.c
kernel: timer: track the armed state under timer_lock
2026-10-28 22:41:55 -04:00
timeslicing.c
kernel: avoid unnecessary time-slice scheduler locking
2026-09-04 21:45:23 -04:00
usage.c
kernel: skip redundant runtime usage stop locking
2026-09-23 10:37:29 +01:00
version.c
build: namespace the generated headers with zephyr/
2024-05-28 22:03:55 +02:00
work.c
kernel: work: wake all k_work_cancel_sync waiters
2026-10-20 17:22:56 +02:00