summaryrefslogtreecommitdiff
path: root/sys/kern
Commit message (Collapse)AuthorAgeFilesLines
* MFC r216371:Andrew Thompson2010-12-211-2/+2
| | | | | | | | | | | Fix race in devfs by using LIST_FIRST() instead of LIST_FOREACH_SAFE() when freeing the devfs private data entries. Approved by: re (kib) Notes: svn path=/stable/8/; revision=216611
* MFC 216504:John Baldwin2010-12-201-8/+6
| | | | | | | | | | | | Add back a bounds check on valid idle priorities that was lost in an earlier commit. While here, move the thread lock down in rtp_to_pri(). It is not needed for all of the priority value checks and the computation of newpri. Approved by: re (kib) Notes: svn path=/stable/8/; revision=216593
* MFC r216150, r216158:Konstantin Belousov2010-12-101-6/+75
| | | | | | | | | | | | | | | | If unix socket has a unix socket attached as the rights that has a unix socket attached as the rights that has a unix socket attached as the rights ... Kernel may overflow the stack on attempt to close such socket. Only close the rights file in the context of the current close if the file is not unix domain socket. Otherwise, postpone the work to taskqueue, preventing unlimited recursion. Approved by: re (bz) Notes: svn path=/stable/8/; revision=216353
* MFC r215838:Konstantin Belousov2010-12-021-2/+5
| | | | | | | | | Account i/o done on cdevs. Approved by: re (bz) Notes: svn path=/stable/8/; revision=216102
* MFC r215797:Konstantin Belousov2010-12-011-5/+15
| | | | | | | | | Allow shared-locked vnode to be passed to vunref(9). Approved by: re (bz) Notes: svn path=/stable/8/; revision=216096
* Merge revision 211236 form current:Justin T. Gibbs2010-11-301-8/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow interrupt driven config hooks to be registered from config hook callbacks. Interrupt driven configuration hooks serve two purposes: they are a mechanism for registering for a callback that is invoked once interrupt services are available, and they hold off root device selection so long as any configuration hooks are still active. Before this change, it was not possible to safely register additional hooks from the context of a configuration hook callback. The need for this feature arises when interrupts are required to discover new devices (e.g. access to the XenStore to find para-virtualized devices) which in turn also require the ability to hold off root device selection until some lengthy, interrupt driven, configuration task has completed (e.g. Xen front/back device driver negotiation). More specifically, the mutex protecting the list of active configuration hooks is never held during a callback, and static information is used to ensure proper ordering and only a single callback to each hook even when faced with registration or removal of a hook during an active run. Sponsored by: Spectra Logic Corporation Approved by: re (kib) Notes: svn path=/stable/8/; revision=216087
* MFC r215544,215683:Attilio Rao2010-11-291-3/+2
| | | | | | | | | | | Scan the list in reverse order for the shutdown handlers of loaded modules. This way, when there is a dependency between two modules, the handler of the latter probed runs first. Sponsored by: Sandvine Incorporated Notes: svn path=/stable/8/; revision=216042
* MFC r215665,r215732: Don't lose seconds to integer overflow if we go moreColin Percival2010-11-281-0/+10
| | | | | | | than one second between calls to tc_windup. Notes: svn path=/stable/8/; revision=216015
* Merge MIPS platform support to 8-STABLE.Jayachandran C.2010-11-273-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit merges the MIPS platform changes that was now stable in -CURRENT into 8-STABLE. The MIPS changesets are too many (~400) to list here. But the changesets merged in this commit that affect other platforms are summarized below: r204635 : (changes to sys/dev/hwpmc, lib/libpmc, sys/sys/pmc.h) Add support for hwpmc(4) on the MIPS 24K, 32 bit, embedded processor. r205845: (changes to sys/modules/Makefile) Fix for building modules on mips and arm. r204031: (changes to sys/kern/link_elf_obj.c) printf fix, as part of kernel module support for MIPS. r206404: (changes to sys/arm/include/bus.h) Add BUS_SPACE_UNRESTRICTED and define it to be ~0, just like all the other platforms - for arm and mips. r206819: (changes to sys/vm/) Add VMFS_TLB_ALIGNED_SPACE option and kmem_alloc_nofault_space(), which is used to allocate kernel stack address on MIPS. r208165, r211087: (sys/kern/subr_smp.c, sys/kern/sched_ule.c) Enable ULE scheduler for MIPS, Fix for an issue in SMP when 32 cpus are enabled. r208659: (sys/{ia64/ia64,mips/mips,sun4v/sun4v}/pmap.c) Simplify the inner loop of get_pv_entry() r208794: (changes to sys/vm/) Make vm_contig_grow_cache() extern, and use it when vm_phys_alloc_contig() fails to allocate MIPS page table pages. r210327: (changes to sys/vm/) Support for MIPS page table page allocation. Add a new function 'vm_page_t vm_page_alloc_freelist(int flind, int order, int req)' to vm/vm_page.c to allocate a page from a specified freelist, and other related changes. Reviewed by: alc(vm changes only) Approved by: kib(re), alc(vm), imp(mips), jmallett(mips), gnn(mips pmc) Notes: svn path=/stable/8/; revision=215938
* MFC r215102:Attilio Rao2010-11-251-2/+2
| | | | | | | Fix a typo. Notes: svn path=/stable/8/; revision=215822
* MFC r213986:Nathan Whitehorn2010-11-221-4/+0
| | | | | | | | | | Fix an XXX comment by answering 'no'. OS X does not set the day-of-week counter on SMU-based systems, which causes FreeBSD to reject the RTC time when used in a dual-boot environment. Since we don't use the day-of-week counter anyway, solve this by just not checking that it matches. Notes: svn path=/stable/8/; revision=215688
* MFC r215281, r215282, r215283, r215304:Rebecca Cran2010-11-216-54/+85
| | | | | | | | | | | Add some descriptions to sys/kern sysctls. Fix style(9) issues. PR: kern/148710 PR: kern/148510 Notes: svn path=/stable/8/; revision=215629
* MFC r214125:Xin LI2010-11-211-5/+4
| | | | | | | | | | | | | | | | | | | | | | | In syscall_module_handler(): all switch branches return, remove unreached code as pointed out in a Chinese forum [1]. [1] http://www.freebsdchina.org/forum/viewtopic.php?t=50619 Pointed out by: btw616 <btw s qq com> MFC r214181: Call chainevh callback when we are invoked with neither MOD_LOAD nor MOD_UNLOAD. This makes it possible to add custom hooks for other module events. Return EOPNOTSUPP when there is no callback available. Pointed out by: jhb Reviewed by: jhb Notes: svn path=/stable/8/; revision=215628
* MFC r215034:Rebecca Cran2010-11-201-1/+1
| | | | | | | | | | Fix typos. PR: bin/148894 Submitted by: olgeni Notes: svn path=/stable/8/; revision=215588
* Merge the kern_fpu_enter/kern_fpu_leave KPI and followup fixes for theKonstantin Belousov2010-11-191-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | amd64 suspend/resume support. Tested by: Mike Tancsa Also tested by: Dewayne Geraghty <dewayne.geraghty heuristicsystems com au>, Daryl Richards <daryl isletech net> Below is the svn log of the merged revisions. ------------------------------------------------------------------------ r197455 | emaste | 2009-09-24 17:26:42 +0300 (Thu, 24 Sep 2009) | 5 lines Add a backtrace to the "fpudna in kernel mode!" case, to help track down where this comes from. Reviewed by: bde ------------------------------------------------------------------------ r197863 | jkim | 2009-10-08 20:41:53 +0300 (Thu, 08 Oct 2009) | 8 lines Clean up amd64 suspend/resume code. - Allocate memory for wakeup code after ACPI bus is attached. The early memory allocation hack was inherited from i386 but amd64 does not need it. - Exclude real mode IVT and BDA explicitly. Improve comments about memory allocation and reason for the exclusions. It is a no-op in reality, though. - Remove an unnecessary CLD from wakeup code and re-align. ------------------------------------------------------------------------ r198931 | jkim | 2009-11-05 00:39:18 +0200 (Thu, 05 Nov 2009) | 2 lines Tweak memory allocation for amd64 suspend/resume CPU context. ------------------------------------------------------------------------ r200280 | jkim | 2009-12-09 00:38:42 +0200 (Wed, 09 Dec 2009) | 2 lines Simplify a macro not to generate unncessary symbols. ------------------------------------------------------------------------ r205444 | emaste | 2010-03-22 13:52:53 +0200 (Mon, 22 Mar 2010) | 7 lines Merge r197455 from amd64: Add a backtrace to the "fpudna in kernel mode!" case, to help track down where this comes from. Reviewed by: bde ------------------------------------------------------------------------ r208833 | kib | 2010-06-05 18:59:59 +0300 (Sat, 05 Jun 2010) | 15 lines Introduce the x86 kernel interfaces to allow kernel code to use FPU/SSE hardware. Caller should provide a save area that is chained into the stack of the areas; pcb save_area for usermode FPU state is on top. The pcb now contains a pointer to the current FPU saved area, used during FPUDNA handling and context switches. There is also a facility to allow the kernel thread to use pcb save_area. Change the dreaded warnings "npxdna in kernel mode!" into the panics when FPU usage is not registered. KPI discussed with: fabient Tested by: pho, fabient Hardware provided by: Sentex Communications MFC after: 1 month ------------------------------------------------------------------------ r208834 | kib | 2010-06-05 19:00:53 +0300 (Sat, 05 Jun 2010) | 13 lines Use the fpu_kern_enter() interface to properly separate usermode FPU context from in-kernel execution of padlock instructions and to handle spurious FPUDNA exceptions that sometime are raised when doing padlock calculations. Globally mark crypto(9) kthread as using FPU. Reviewed by: pjd Hardware provided by: Sentex Communications Tested by: pho PR: amd64/135014 MFC after: 1 month ------------------------------------------------------------------------ r208877 | kib | 2010-06-06 19:13:50 +0300 (Sun, 06 Jun 2010) | 5 lines Style-compilant order of declarations. Noted by: bde MFC after: 1 month ------------------------------------------------------------------------ r209174 | jkim | 2010-06-14 23:08:26 +0300 (Mon, 14 Jun 2010) | 3 lines Fix ACPI suspend/resume on amd64, which was broken since r208833. We need actual storage for FPU state to save and restore. ------------------------------------------------------------------------ r209198 | kib | 2010-06-15 12:19:33 +0300 (Tue, 15 Jun 2010) | 10 lines Use critical sections instead of disabling local interrupts to ensure the consistency between PCPU fpcurthread and the state of the FPU. Explicitely assert that the calling conventions for fpudrop() are adhered too. In cpu_thread_exit(), add missed critical section entrance. Reviewed by: bde Tested by: pho MFC after: 1 month ------------------------------------------------------------------------ r209204 | kib | 2010-06-15 17:59:35 +0300 (Tue, 15 Jun 2010) | 5 lines Rename CRITSECT_ASSERT to CRITICAL_ASSERT. Suggested by: jhb MFC after: 1 month ------------------------------------------------------------------------ r209208 | kib | 2010-06-15 21:16:04 +0300 (Tue, 15 Jun 2010) | 4 lines Remove two obsoleted comments, add a note about 32bit compatibility. MFC after: 1 month ------------------------------------------------------------------------ r209252 | kib | 2010-06-17 15:35:17 +0300 (Thu, 17 Jun 2010) | 6 lines In the ia32_{get,set}_fpcontext(), use fpu{get,set}userregs instead of fpu{get,set}regs. Noted by: bde MFC after: 1 month ------------------------------------------------------------------------ r209460 | kib | 2010-06-23 13:40:28 +0300 (Wed, 23 Jun 2010) | 8 lines Remove unused i586 optimized bcopy/bzero/etc implementations that utilize FPU registers for copying. Remove the switch table and jumps from bcopy/bzero/... to the actual implementation. As a side-effect, i486-optimized bzero is removed. Reviewed by: bde Tested by: pho (previous version) ------------------------------------------------------------------------ r209461 | kib | 2010-06-23 14:12:58 +0300 (Wed, 23 Jun 2010) | 8 lines Remove the support for int13 FPU exception reporting on i386. It is believed that all 486-class CPUs FreeBSD is capable to run on, either have no FPU and cannot use external coprocessor, or have FPU on the package and can use #MF. Reviewed by: bde Tested by: pho (previous version) ------------------------------------------------------------------------ r209462 | kib | 2010-06-23 14:21:19 +0300 (Wed, 23 Jun 2010) | 8 lines After the FPU use requires #MF working due to INT13 FPU exception handling removal, MFi386 r209198: Use critical sections instead of disabling local interrupts to ensure the consistency between PCPU fpcurthread and the state of FPU. Reviewed by: bde Tested by: pho ------------------------------------------------------------------------ r210514 | jkim | 2010-07-26 22:53:09 +0300 (Mon, 26 Jul 2010) | 6 lines Re-implement FPU suspend/resume for amd64. This removes superfluous uses of critical_enter(9) and critical_exit(9) by fpugetregs() and fpusetregs(). Also, we do not touch PCB flags any more. MFC after: 1 month ------------------------------------------------------------------------ r210517 | jkim | 2010-07-27 00:24:52 +0300 (Tue, 27 Jul 2010) | 4 lines FNSTSW instruction can use AX register as an operand. Obtained from: fenv.h ------------------------------------------------------------------------ r210518 | jkim | 2010-07-27 01:16:36 +0300 (Tue, 27 Jul 2010) | 5 lines Reduce diff against fenv.h: Mark all inline asms as volatile for safety. No object file change after this commit (verified with md5). ------------------------------------------------------------------------ r210519 | jkim | 2010-07-27 01:55:14 +0300 (Tue, 27 Jul 2010) | 2 lines Remove an unused macro since r189418. ------------------------------------------------------------------------ r210520 | jkim | 2010-07-27 02:02:18 +0300 (Tue, 27 Jul 2010) | 2 lines Add missing ldmxcsr() prototype for lint case. ------------------------------------------------------------------------ r210521 | jkim | 2010-07-27 02:20:55 +0300 (Tue, 27 Jul 2010) | 3 lines Simplify fldcw() macro. There is no reason to use pointer here. No object file change after this commit (verified with md5). ------------------------------------------------------------------------ r210614 | jkim | 2010-07-29 19:41:21 +0300 (Thu, 29 Jul 2010) | 2 lines Rename PCB_USER_FPU to PCB_USERFPU not to clash with a macro from fpu.h. ------------------------------------------------------------------------ r210615 | jkim | 2010-07-29 19:49:20 +0300 (Thu, 29 Jul 2010) | 5 lines Fix another fallout from r208833. savectx() is used to save CPU context for crash dump (dumppcb) and kdb (stoppcbs). For both cases, there cannot have a valid pointer in pcb_save. This should restore the previous behaviour. ------------------------------------------------------------------------ r210777 | jkim | 2010-08-02 20:35:00 +0300 (Mon, 02 Aug 2010) | 13 lines - Merge savectx2() with savectx() and struct xpcb with struct pcb. [1] savectx() is only used for panic dump (dumppcb) and kdb (stoppcbs). Thus, saving additional information does not hurt and it may be even beneficial. Unfortunately, struct pcb has grown larger to accommodate more data. Move 512-byte long pcb_user_save to the end of struct pcb while I am here. - savectx() now saves FPU state unconditionally and copy it to the PCB of FPU thread if necessary. This gives panic dump and kdb a chance to take a look at the current FPU state even if the FPU is "supposedly" not used. - Resuming CPU now unconditionally reinitializes FPU. If the saved FPU state was irrelevant, it could be in an unknown state. Suggested by: bde [1] ------------------------------------------------------------------------ r210804 | jkim | 2010-08-03 18:32:08 +0300 (Tue, 03 Aug 2010) | 6 lines savectx() has not been used for fork(2) for about 15 years. [1] Do not clobber FPU thread's PCB as it is more harmful. When we resume CPU, unconditionally reload FPU state. Pointed out by: bde [1] ------------------------------------------------------------------------ r212026 | jkim | 2010-08-31 00:19:42 +0300 (Tue, 31 Aug 2010) | 3 lines Save MSR_FSBASE, MSR_GSBASE and MSR_KGSBASE directly to PCB as we do not use these values in the function. ------------------------------------------------------------------------ r214347 | jhb | 2010-10-25 18:31:13 +0300 (Mon, 25 Oct 2010) | 5 lines Use 'saveintr' instead of 'savecrit' or 'eflags' to hold the state returned by intr_disable(). Requested by: bde ------------------------------------------------------------------------ Notes: svn path=/stable/8/; revision=215513
* MFC r209407, r209648, r209650Alan Cox2010-11-171-1/+1
| | | | | | | | Introduce and use vm_page_next() and vm_page_prev(). They provide both a simpler and faster interface for iterating over the pages of an object. Notes: svn path=/stable/8/; revision=215430
* MFC r213813. This is a direct commit because the diff is againstMatthew D Fleming2010-11-121-19/+46
| | | | | | | | | | | several non-MFC'd changes. Use a safer mechanism for determining if a task is currently running, that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Notes: svn path=/stable/8/; revision=215190
* MFC r209154:Alexander Motin2010-11-091-0/+22
| | | | | | | | Virtualize pci_remap_msi_irq() call from general MSI code. It allows MSI (FSB interrupts) to be used by non-PCI devices, such as HPET. Notes: svn path=/stable/8/; revision=215064
* MFC 210939:John Baldwin2010-11-093-8/+8
| | | | | | | | | Add a new ipi_cpu() function to the MI IPI API that can be used to send an IPI to a specific CPU by its cpuid. Replace calls to ipi_selected() that constructed a mask for a single CPU with calls to ipi_cpu() instead. Notes: svn path=/stable/8/; revision=215050
* MFC 214682:John Baldwin2010-11-091-2/+2
| | | | | | | | | | Tweak the waitchannel messages for the dead lock detection kthread. Use a shorter message (userland generally only sees the first 6 to 8 characters) when waiting for the allproc lock. Use "-" when idle to match the behavior of other kthreads. Notes: svn path=/stable/8/; revision=215044
* MFC 214449:John Baldwin2010-11-041-9/+3
| | | | | | | | Set bootverbose directly in mi_startup() rather than via a SYSINIT. This ensures 'bootverbose' is in a valid state for all SYSINITs. Notes: svn path=/stable/8/; revision=214789
* MFC r209688:Konstantin Belousov2010-11-032-12/+70
| | | | | | | | Extend ptrace(PT_LWPINFO) to report siginfo for the signal that caused debugee stop. Notes: svn path=/stable/8/; revision=214756
* MFC r208453:Konstantin Belousov2010-11-036-4/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reorganize syscall entry and leave handling. Implement ptrace_lwpinfo pl_flags PL_FLAG_SCE, PL_FLAG_SCX and PL_FLAG_EXEC. The i386, amd64, sparc64, sun4v, powerpc and ia64 syscall()s are changed to use syscallenter()/syscallret(). MIPS and arm are not converted and use the mostly unchanged syscall() implementation. MFC r208514: Change ia64' struct syscall_args definition so that args is a pointer to the arguments array instead of array itself. MFC r208566: Allow to use syscallname(9) outside subr_trap.c. MFC r209258 (by rpaulo): Make DTrace syscall provider work again by including opt_kdtrace.h here. MFC r209313: Only enable kdtrace hook in the LINT on the architectures that implement it. MFC r209697: Obey sv_syscallnames bounds in syscallname(). NOTE: The KBI of the struct sysentvec is changed, new required members sv_set_syscall_retval, sv_fetch_syscall_args and sv_syscallnames are added. The sv_prepsyscall field is now ignored. Third-party modules using the struct sysentvec must be modified and recompiled, we believe that only ABI emulators are affected. No such out-of-tree modules are known. In-tree modules that are affected by the change were converted to depend on exact version of the kernel, see r214421. Notes: svn path=/stable/8/; revision=214755
* MFC r214245:Edward Tomasz Napierala2010-11-011-22/+0
| | | | | | | | Remove workaround for ZFS bug; fix was committed to the //depot/user/pjd/zfs/... branch some time ago. Notes: svn path=/stable/8/; revision=214627
* MFC r212906:Edward Tomasz Napierala2010-11-011-0/+77
| | | | | | | | | | First step at adopting FreeBSD to support PSARC/2010/029. This makes acl_is_trivial_np(3) properly recognize the new trivial ACLs. From the user point of view, that means "ls -l" no longer shows plus signs for all the files when running ZFS v28. Notes: svn path=/stable/8/; revision=214626
* MFC r213916:Konstantin Belousov2010-10-301-12/+20
| | | | | | | | | Provide vfs.ncsizefactor instead of hard-coding namecache ratio. Move debug.ncnegfactor to vfs.ncnegfactor. Provide some descriptions for the namecache related sysctls. Notes: svn path=/stable/8/; revision=214543
* MFC 212242:Michael Tuexen2010-10-281-4/+2
| | | | | | | | Implement correct handling of address parameter and sendinfo for SCTP send calls. Notes: svn path=/stable/8/; revision=214470
* MFC r211030:Michael Tuexen2010-10-281-1/+6
| | | | | | | | | | Fix a bug where MSG_TRUNC was not returned in all necessary cases for SOCK_DGRAM socket. MSG_TRUNC was only returned when some mbufs could not be copied to the application. If some data was left in the last mbuf, it was correctly discarded, but MSG_TRUNC was not set. Notes: svn path=/stable/8/; revision=214461
* MFC r213664:Konstantin Belousov2010-10-271-0/+8
| | | | | | | | | | | The r184588 changed the layout of struct export_args, causing an ABI breakage for old mount(2) syscall, since most struct <filesystem>_args embed export_args. The mount(2) is supposed to provide ABI compatibility for pre-nmount mount(8) binaries, so restore ABI to pre-r184588. Notes: svn path=/stable/8/; revision=214420
* MFC r213536 by emaste:Attilio Rao2010-10-261-0/+1
| | | | | | | | Make a thread's address available via the kern proc sysctl, just like the process address. Notes: svn path=/stable/8/; revision=214364
* MFC r213236 by emaste:Attilio Rao2010-10-251-2/+1
| | | | | | | | | Style fix. Sponsored by: Sandvine Incorporated Notes: svn path=/stable/8/; revision=214362
* MFC r212096 by emaste:Attilio Rao2010-10-251-2/+0
| | | | | | | | | | As long as we are going to panic anyway, there's no need to hide additional information behind DIAGNOSTIC. Sponsored by: Sandvine Incorporated Notes: svn path=/stable/8/; revision=214340
* MFC of 206632Julian Elischer2010-10-251-24/+30
| | | | | | | | If both ALQ and KTR are defined, allow KTR buffer to be used when ALQ is disabled by sysctl. Notes: svn path=/stable/8/; revision=214311
* MFC r213648: panic_cpu variable should be volatileAndriy Gapon2010-10-161-4/+3
| | | | Notes: svn path=/stable/8/; revision=213934
* MFC r213651: add kmem_map_free sysctl: query largest contiguous free range ↵Andriy Gapon2010-10-161-0/+17
| | | | | | | in kmem_map Notes: svn path=/stable/8/; revision=213921
* MFC r213527: vm.kmem_map_size: a sysctl to query current kmem_map->sizeAndriy Gapon2010-10-161-0/+14
| | | | Notes: svn path=/stable/8/; revision=213919
* MFC r213359:Konstantin Belousov2010-10-162-6/+6
| | | | | | | | | Release the vnode lock and close the linker file vnode earlier in the linker_load_file methods. This prevents the LOR between kernel linker sx xlock and vnode lock. Notes: svn path=/stable/8/; revision=213915
* MFC r209605Alan Cox2010-10-151-30/+22
| | | | | | | | | | | | | | | | | Improve bufdone_finish()'s handling of the bogus page. Specifically, if one or more mappings to the bogus page must be replaced, call pmap_qenter() just once. Previously, pmap_qenter() was called for each mapping to the bogus page. MFC r209902 Change the implementation of vm_hold_free_pages() so that it performs at most one call to pmap_qremove(), and thus one TLB shootdown, instead of one call and TLB shootdown per page. Simplify the interface to vm_hold_free_pages(). Notes: svn path=/stable/8/; revision=213890
* MFC 212974:John Baldwin2010-10-121-1/+1
| | | | | | | | Comment nit, set TDF_NEEDRESCHED after the comment describing why it is done rather than before. Notes: svn path=/stable/8/; revision=213721
* MFC r213322: sysctls in kern_shutdown: add twin tunablesAndriy Gapon2010-10-081-6/+9
| | | | Notes: svn path=/stable/8/; revision=213560
* MFC r213305: there must be only one SYSINIT withAndriy Gapon2010-10-081-1/+1
| | | | | | | SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order Notes: svn path=/stable/8/; revision=213558
* MFC r213304: debug.kdb.stop_cpus sysctl: hint that this is also aAndriy Gapon2010-10-081-1/+1
| | | | | | | tunable Notes: svn path=/stable/8/; revision=213556
* MFC r213303: kmem_size* sysctls: hint that these are also tunablesAndriy Gapon2010-10-081-4/+4
| | | | Notes: svn path=/stable/8/; revision=213554
* MFC r212994: kdb_backtrace: use stack_print_ddb instead of stack_printAndriy Gapon2010-10-083-8/+4
| | | | Notes: svn path=/stable/8/; revision=213553
* MFC r212964: kdb_backtrace: stack(9)-based code to print backtraceAndriy Gapon2010-10-081-0/+11
| | | | | | | without any backend Notes: svn path=/stable/8/; revision=213552
* MFC r213258:David Xu2010-10-071-11/+5
| | | | | | | | | - kern_sched_rr_get_interval should return interval for thread 1 in target process. - eliminate a goto. Notes: svn path=/stable/8/; revision=213511
* MFC r212824:Konstantin Belousov2010-10-023-0/+3
| | | | | | | | | | | | | | Adopt the deferring of object deallocation for the deleted map entries on map unlock to the lock downgrade and later read unlock operation. MFC r212868 (by alc) [1]: Make refinements to r212824. Redo the implementation of vm_map_unlock_and_wait(). Approved by: alc [1] Notes: svn path=/stable/8/; revision=213362
* MFC r210782,210837: Update the "desiredvnodes" calculation.Andriy Gapon2010-10-021-8/+19
| | | | | | | On behalf of: alc Notes: svn path=/stable/8/; revision=213353
* MFC r212544: bus_add_child: add specialized default implementation thatAndriy Gapon2010-09-271-1/+11
| | | | | | | calls panic Notes: svn path=/stable/8/; revision=213195
* MFC r212821: kern.sched.topology_spec sysctl: use step of 1 for groupAndriy Gapon2010-09-271-1/+1
| | | | | | | levels numeration Notes: svn path=/stable/8/; revision=213194