freebsd-dev/sys/kern
Alexander Motin 6df1359e55 sleepqueue(9): Remove sbinuptime() from sleepq_timeout().
Callout c_time is always bigger or equal than the scheduled time.  It
is also smaller than sbinuptime() and can't change while the callback
is running.  So we reliably can use it instead of sbinuptime() here.
In case there was a race and the callout was rescheduled to the later
time, the callback will be called again.

According to profiles it saves ~5% of the timer interrupt time even
with fast TSC timecounter.

MFC after:	1 month
2021-10-02 21:08:41 -04:00
..
bus_if.m device: add device_get_property and device_has_property 2021-09-20 17:17:57 +02:00
clock_if.m
cpufreq_if.m
device_if.m
firmw.S
genassym.sh
genoffset.c
genoffset.sh genoffset.sh: Use 10 X's instead of 5 for pick mkdtemp implementations 2021-09-07 10:08:51 -06:00
imgact_aout.c
imgact_binmisc.c
imgact_elf32.c
imgact_elf64.c
imgact_elf.c procctl(2): Add PROC_WXMAP_CTL/STATUS 2021-09-17 15:42:01 +03:00
imgact_shell.c
init_main.c
init_sysent.c
kern_acct.c
kern_alq.c
kern_clock.c
kern_clocksource.c
kern_condvar.c
kern_conf.c
kern_cons.c Re-implement virtual console (constty). 2021-09-03 22:18:51 -04:00
kern_context.c
kern_cpu.c Make CPU children explicitly share parent unit numbers. 2021-09-24 23:31:51 -04:00
kern_cpuset.c
kern_ctf.c kern_ctf: Use zlib's uncompress function for simpler code. 2021-09-25 23:33:00 -07:00
kern_descrip.c fd: add pwd_hold_proc 2021-09-30 12:49:51 +02:00
kern_dtrace.c
kern_dump.c minidump: De-duplicate the progress bar 2021-09-29 16:42:21 -03:00
kern_environment.c
kern_et.c
kern_event.c kqueue: fix recent assertion 2021-10-01 13:17:30 -05:00
kern_exec.c Fix segment size in compressing core dumps 2021-10-01 14:16:33 -05:00
kern_exit.c
kern_fail.c
kern_ffclock.c
kern_fork.c procctl(2): Add PROC_WXMAP_CTL/STATUS 2021-09-17 15:42:01 +03:00
kern_hhook.c
kern_idle.c
kern_intr.c hwpmc: fix performance issues 2021-09-23 07:15:42 +02:00
kern_jail.c jail(9): Fix a typo in a comment 2021-09-26 15:17:41 +02:00
kern_kcov.c kcov: Disable address and memory sanitizers in get_kinfo() 2021-09-17 14:19:05 -04:00
kern_khelp.c
kern_kthread.c
kern_ktr.c
kern_ktrace.c
kern_linker.c
kern_lock.c lockmgr: fix lock profiling of face adaptive spinning 2021-09-18 10:16:58 +00:00
kern_lockf.c
kern_lockstat.c
kern_loginclass.c
kern_malloc.c malloc_aligned(9): allow zero size and alignment 2021-09-25 15:58:12 +03:00
kern_mbuf.c Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
kern_mib.c
kern_module.c
kern_mtxpool.c
kern_mutex.c callout(9): Allow spin locks use with callout_init_mtx(). 2021-09-02 21:16:46 -04:00
kern_ntptime.c
kern_osd.c osd: Fix racy assertions 2021-09-09 10:11:02 -04:00
kern_physio.c
kern_pmc.c
kern_poll.c
kern_priv.c
kern_proc.c
kern_procctl.c procctl(2): Add PROC_WXMAP_CTL/STATUS 2021-09-17 15:42:01 +03:00
kern_prot.c
kern_racct.c
kern_rangelock.c
kern_rctl.c
kern_resource.c
kern_rmlock.c
kern_rwlock.c
kern_sdt.c
kern_sema.c
kern_sendfile.c socket: Remove unneeded SOLISTENING checks 2021-09-07 17:12:09 -04:00
kern_sharedpage.c
kern_shutdown.c boot(9): update to match reality 2021-09-28 11:36:09 -03:00
kern_sig.c Drop cloudabi 2021-09-22 00:18:44 +03:00
kern_switch.c
kern_sx.c
kern_synch.c Add _sleep to TSLOG 2021-09-05 12:50:15 -07:00
kern_syscalls.c
kern_sysctl.c
kern_tc.c
kern_thr.c
kern_thread.c amd64: eliminate td_md.md_fpu_scratch 2021-09-21 20:20:15 +03:00
kern_time.c itimer: Serialize access to the p_itimers array 2021-08-31 16:38:05 -04:00
kern_timeout.c callout(9): Allow spin locks use with callout_init_mtx(). 2021-09-02 21:16:46 -04:00
kern_tslog.c
kern_ubsan.c ubsan: Fix a typo in an error message 2021-09-25 11:47:24 +02:00
kern_umtx.c
kern_uuid.c
kern_xxx.c
ksched.c
link_elf_obj.c
link_elf.c
linker_if.m
Make.tags.inc Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00
Makefile syscalls.master: switch to CAPENABLED flags 2021-09-01 21:58:16 +01:00
md4c.c
md5c.c
msi_if.m
p1003_1b.c
pic_if.m
posix4_mib.c
sched_4bsd.c
sched_ule.c sched_ule(4): Fix possible significance loss. 2021-10-02 00:09:45 -04:00
serdev_if.m
stack_protector.c
subr_acl_nfs4.c
subr_acl_posix1e.c
subr_asan.c
subr_atomic64.c
subr_autoconf.c Add run_interrupt_driven_config_hooks to TSLOG 2021-09-05 12:45:29 -07:00
subr_blist.c
subr_boot.c
subr_bufring.c
subr_bus_dma.c
subr_bus.c bus: Cleanup device_probe_child() 2021-09-24 20:34:56 -04:00
subr_busdma_bufalloc.c
subr_capability.c
subr_clock.c
subr_compressor.c
subr_counter.c
subr_coverage.c kcov: Integrate with KMSAN 2021-09-14 14:29:27 -04:00
subr_csan.c
subr_devmap.c
subr_devstat.c
subr_disk.c
subr_dummy_vdso_tc.c
subr_early.c
subr_epoch.c
subr_eventhandler.c
subr_fattime.c
subr_filter.c
subr_firmware.c
subr_gtaskqueue.c
subr_hash.c
subr_hints.c
subr_intr.c
subr_kdb.c
subr_kobj.c
subr_lock.c
subr_log.c
subr_mchain.c
subr_module.c
subr_msan.c
subr_msgbuf.c
subr_param.c
subr_pcpu.c
subr_pctrie.c
subr_physmem.c
subr_pidctrl.c
subr_power.c
subr_prf.c Unify console output. 2021-09-03 23:13:42 -04:00
subr_prng.c
subr_prof.c
subr_rangeset.c
subr_rman.c rman: fix overflow in rman_reserve_resource_bound() 2021-09-27 14:38:26 -03:00
subr_rtc.c
subr_sbuf.c
subr_scanf.c
subr_sfbuf.c
subr_sglist.c
subr_sleepqueue.c sleepqueue(9): Remove sbinuptime() from sleepq_timeout(). 2021-10-02 21:08:41 -04:00
subr_smp.c
subr_smr.c
subr_stack.c
subr_stats.c
subr_syscall.c
subr_taskqueue.c callout(9): Allow spin locks use with callout_init_mtx(). 2021-09-02 21:16:46 -04:00
subr_terminal.c
subr_trap.c kqueue: drain kqueue taskqueue if syscall tickled it 2021-09-07 02:43:34 +03:00
subr_turnstile.c
subr_uio.c
subr_unit.c
subr_vmem.c vmem: disable debug.vmem_check by default 2021-09-02 18:28:45 +00:00
subr_witness.c
sys_capability.c
sys_eventfd.c
sys_generic.c
sys_getrandom.c
sys_pipe.c
sys_procdesc.c
sys_process.c Remove PT_GET_SC_ARGS_ALL 2021-09-16 20:11:27 +03:00
sys_socket.c socket: Do not include control messages in FIONREAD return value 2021-09-12 16:39:44 -04:00
syscalls.c
syscalls.master syscalls.master: correct formatting issues 2021-09-01 21:58:22 +01:00
systrace_args.c
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty_compat.c
tty_info.c
tty_inq.c
tty_outq.c
tty_pts.c
tty_tty.c
tty_ttydisc.c
tty.c Re-implement virtual console (constty). 2021-09-03 22:18:51 -04:00
uipc_accf.c
uipc_debug.c
uipc_domain.c net: Enter a net epoch around protocol if_up/down notifications 2021-09-10 09:07:40 -04:00
uipc_ktls.c ktls: Fix error/mode confusion in TCP_*TLS_MODE getsockopt handlers 2021-09-17 14:19:05 -04:00
uipc_mbuf2.c
uipc_mbuf.c
uipc_mbufhash.c
uipc_mqueue.c
uipc_sem.c
uipc_shm.c Fix error return of kern.ipc.posix_shm_list, which caused it (and thus 2021-09-29 10:20:36 -07:00
uipc_sockbuf.c socket: Rename sb(un)lock() and interlock with listen(2) 2021-09-07 15:06:48 -04:00
uipc_socket.c Re-style dfcef87714 to keep the code and variables related to 2021-10-01 13:38:24 -07:00
uipc_syscalls.c socket: Avoid clearing SS_ISCONNECTING if soconnect() fails 2021-09-07 17:12:09 -04:00
uipc_usrreq.c unix: Fix a use-after-free in unp_drop() 2021-09-18 10:38:39 -04:00
vfs_acl.c
vfs_aio.c aio_aqueue(): avoid ucred leak on failure path 2021-09-24 03:18:34 +03:00
vfs_bio.c buffer pager: allow get_blksize method to return error 2021-09-17 20:29:55 +03:00
vfs_cache.c cache: count vnodes in cache_purgevfs 2021-09-18 10:16:50 +00:00
vfs_cluster.c cluster_write(): do not access buffer after it is released 2021-09-02 21:36:33 +03:00
vfs_default.c vfs_default: Change vop_stddeallocate() from static to global 2021-08-27 18:25:44 -07:00
vfs_export.c
vfs_extattr.c
vfs_hash.c vfs_hash_rehash(): require the vnode to be exclusively locked 2021-08-27 18:39:45 +03:00
vfs_init.c
vfs_lookup.c vfs: hoist cn_thread assert in namei 2021-10-01 21:56:29 +00:00
vfs_mount.c mount: improve error message for invalid filesystem names 2021-09-15 16:25:31 +02:00
vfs_mountroot.c vfs: add missing VIRF_MOUNTPOINT in vfs_mountroot_shuffle 2021-09-18 21:13:51 +02:00
vfs_subr.c vfs: retire VNODE_REFCOUNT_FENCE_* macros 2021-09-18 10:16:00 +00:00
vfs_syscalls.c
vfs_vnops.c fifo: support flock 2021-09-25 14:58:31 +00:00
vnode_if.src