summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sanitize the malloc types: M_PMAP is not used in pmap.c, so don'tmarcel2008-04-192-5/+3
| | | | | define it there. Don't use M_PMAP in mp_machdep.c; define M_SMP instead.
* remove kdb_backtrace() callkmacy2008-04-191-1/+0
|
* move tcbinfo lock acquisition in to syncachekmacy2008-04-191-0/+3
|
* move cxgb_lt2.[ch] from NIC to TOEkmacy2008-04-1919-1706/+2458
| | | | | | move most offload functionality from NIC to TOE factor out all socket and inpcb direct access factor out access to locking in incpb, pcbinfo, and sockbuf
* Fix the breakage that caused AHCI devices to vanish. Editor droppings :(sos2008-04-182-26/+3
| | | | Put the ATAPI device numbering back to the old ways.
* - Add inlines for the monitor and mwait instructions.jeff2008-04-182-0/+26
| | | | Sponsored by: Nokia
* Remove cruft we got from Alpha, which was probably inheritedmarcel2008-04-181-31/+6
| | | | from NetBSD. I.e. make it more like a FreeBSD header.
* Add missing function prototype for tcgetsid().davidxu2008-04-181-0/+10
|
* Add support for the 32-bit EFI target.marcel2008-04-171-3/+10
|
* Add in check for loopback as well, which was missing from the original patch.gnn2008-04-171-0/+1
| | | | | | PR: 120958 Submitted by: James Snow <snow at teardrop.org> MFC after: 2 weeks
* Add the '-u name' option to the env command, which will completely unsetgad2008-04-172-8/+31
| | | | | | | | the given variable name (removing it from the environment, instead of just setting it to a null value). PR: bin/65649 MFC after: 2 weeks
* Change the 1 in callout_init to CALLOUT_MPSAFE. I made the change in mycokane2008-04-171-1/+1
| | | | | | | tree, but never committed it into git before making my patch! Submitted by: thompsa MFC after: 1 month
* Next stage of stdio cleanup: Retire __sFILEX and merge the fields back intojhb2008-04-1727-147/+79
| | | | | | | | | | | | | | | | | | | __sFILE. This was supposed to be done in 6.0. Some notes: - Where possible I restored the various lines to their pre-__sFILEX state. - Retire INITEXTRA() and just initialize the wchar bits (orientation and mbstate) explicitly instead. The various places that used INITEXTRA didn't need the locking fields or _up initialized. (Some places needed _up to exist and not be off the end of a NULL or garbage pointer, but they didn't require it to be initialized to a specific value.) - For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to avoid namespace pollution of including all the pthread types in stdio.h. Once we remove all the inlines and make __sFILE private it can go back to using pthread_t, etc. - This does not remove any of the inlines currently and does not change any of the public ABI of 'FILE'. MFC after: 1 month Reviewed by: peter
* Change the timeout(9) usage in if_ndis to a callout(9) implementation,cokane2008-04-172-10/+7
| | | | | | | | | | as the former is becoming deprecated and exhibits some extraneous Giant-locking. The new callout(9) is declared MPSAFE, so it may improve concurrency. Tested by: matteo Silence from: wpaul MFC after: 1 month
* Convert pcbinfo and inpcb mutexes to rwlocks, and modify macros torwatson2008-04-1728-413/+434
| | | | | | | | | | | | | | | explicitly select write locking for all use of the inpcb mutex. Update some pcbinfo lock assertions to assert locked rather than write-locked, although in practice almost all uses of the pcbinfo rwlock main exclusive, and all instances of inpcb lock acquisition are exclusive. This change should introduce (ideally) little functional change. However, it lays the groundwork for significantly increased parallelism in the TCP/IP code. MFC after: 3 months Tested by: kris (superset of committered patch)
* Allow linker_search_symbol_name() to be called with KLD lock held.pjd2008-04-171-3/+6
| | | | | | | The linker_search_symbol_name() function is used by stack_print() and stack_print() can be called from kernel module unload method. MFC after: 1 week
* Specifically mark the members of 'FILE' that are accessed via inlinejhb2008-04-171-6/+10
| | | | | | functions or macros since they are part of the public ABI as a result. MFC after: 1 month
* Alloc two DMA slots pr default, silly me forgot that slaves still exists.sos2008-04-171-1/+1
|
* Clean up the code that checks the types of address so that it isgnn2008-04-172-3/+6
| | | | | | | | | | | done by understandable macros. Fix the bug that prevented the system from responding on interfaces with link local addresses assigned. PR: 120958 Submitted by: James Snow <snow at teardrop.org> MFC after: 2 weeks
* On sparc64 machines with multiple host-PCI-bridges these bridgesmarius2008-04-178-149/+21
| | | | | | | | | | | | | | | | | have separate configuration spaces so by definition they implement different PCI domains. Thus change psycho(4) to use PCI domains instead of reenumerating all PCI busses so they have globally unique bus numbers and drop support for reenumerating busses in the OFW PCI code. According to CVS history reenumeration was also required in order to get some E450 to boot but given that no other open source kernel changes the PCI bus numbers assigned by the firmware I believe the real problem was that the old code used the bus number as the device number for the PCI busses and unlike most of the other machines the firmwares of the problematic ones don't use disjoint PCI bus numbers across the host-PCI-bridges. MFC after: 1 month
* Go back to preallocating everything possible on init.sos2008-04-1713-188/+243
| | | | | This avoids calling busdma in the request processing path which caused a traumatic performance degradation. Allocation has be postponed to after we know how many devices we possible can have on portmulitpliers to save some space.
* - Add a metric to describe how busy a processor has been over the lastjeff2008-04-171-7/+71
| | | | | | | | | | | two ticks by counting the number of switches and the load when sched_clock() is called. - If the busy metric exceeds a threshold allow the idle thread to spin waiting for new work for a brief period to avoid using IPIs. This reduces the cost on the sender and receiver as well as reducing wakeup latency considerably when it works. Sponsored by: Nokia
* - Make SCHED_STATS more generic by adding a wrapper to create thejeff2008-04-1715-67/+122
| | | | | | | | | | | | | | | | | | variables and sysctl nodes. - In reset walk the children of kern_sched_stats and reset the counters via the oid_arg1 pointer. This allows us to add arbitrary counters to the tree and still reset them properly. - Define a set of switch types to be passed with flags to mi_switch(). These types are named SWT_*. These types correspond to SCHED_STATS counters and are automatically handled in this way. - Make the new SWT_ types more specific than the older switch stats. There are now stats for idle switches, remote idle wakeups, remote preemption ithreads idling, etc. - Add switch statistics for ULE's pickcpu algorithm. These stats include how much migration there is, how often affinity was successful, how often threads were migrated to the local cpu on wakeup, etc. Sponsored by: Nokia
* Mention bzip2 1.0.5 MFC.delphij2008-04-171-1/+1
|
* Simplify the pmap_zero_page family of functions by making use ofmarcel2008-04-171-160/+6
| | | | | | | | the fact that we have a 1:1 mapping by virtue of the BATs. Eliminate the now unused moea_rkva_alloc(), moea_pa_map() and moea_pa_unmap() functions. Pointed out by: grehan.
* Allocate a stack (with optional guard pages) for thread0 andmarcel2008-04-163-70/+60
| | | | switch to it before calling mi_startup().
* - Correctly destroy assoiciated ucom device on detach.stas2008-04-161-0/+2
| | | | | | MFC after: 2 weeks Reported by: Ilya Bakulin <webmaster@kibab.com> Approved by: imp, cognet
* Use separate UMA zone for data items allocation. It is a partialmav2008-04-161-40/+70
| | | | | | | | | rev. 1.149 rework. It allows to save several percents of CPU time on SMP by using UMA's internal per-CPU allocation limits instead of own global variable each time updated with atomics. Tested with: Netperf cluster
* Regenerate.jkim2008-04-166-8/+92
|
* Add stubs for syscalls introduced in Linux 2.6.17 kernel.jkim2008-04-164-0/+24
| | | | | | Some GNU libc version started using them before 2.6.17 was officially out. MFC after: 3 days
* Implement fdopendir(3) by splitting __opendir2() into two parts, the upper partdelphij2008-04-166-7/+73
| | | | | | deals with the usual __opendir2() calls, and the rest part with an interface translator to expose fdopendir(3) functionality. Manual page was obtained from kib@'s work for *at(2) system calls.
* Style fixes to opendir.c:delphij2008-04-161-6/+3
| | | | | - Use /*- for copyright block; - ANSIfy.
* Fixes typo's in sctp.crrs2008-04-161-4/+4
|
* Allow SCTP to compile without INET6.rrs2008-04-1613-972/+1544
| | | | | | PR: 116816 Obtained from tuexen@fh-muenster.de: MFC after: 2 weeks
* Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) forkris2008-04-165-5/+5
| | | | | | | better grep-compliance and to standardize with the rest of the kernel. Reviewed by: jhb MFC after: 1 week
* Sort MAN and MLINKS.ru2008-04-161-25/+26
|
* Connect newly added manpages to the build.ru2008-04-161-5/+15
| | | | Submitted by: kib
* Fix compilation with LOCKF_DEBUG.dfr2008-04-161-1/+1
|
* Fix pkg_info when specifying a remote package.flz2008-04-162-18/+23
| | | | MFC after: 1 week
* Man pages for the openat(2), fexecve(2) and related syscalls.kib2008-04-1615-40/+1098
| | | | Reviewed by: ru
* Move the head of byte-level advisory lock list from thekib2008-04-1624-225/+227
| | | | | | | | | | | | | | | | | | | | | | filesystem-specific vnode data to the struct vnode. Provide the default implementation for the vop_advlock and vop_advlockasync. Purge the locks on the vnode reclaim by using the lf_purgelocks(). The default implementation is augmented for the nfs and smbfs. In the nfs_advlock, push the Giant inside the nfs_dolock. Before the change, the vop_advlock and vop_advlockasync have taken the unlocked vnode and dereferenced the fs-private inode data, racing with with the vnode reclamation due to forced unmount. Now, the vop_getattr under the shared vnode lock is used to obtain the inode size, and later, in the lf_advlockasync, after locking the vnode interlock, the VI_DOOMED flag is checked to prevent an operation on the doomed vnode. The implementation of the lf_purgelocks() is submitted by dfr. Reported by: kris Tested by: kris, pho Discussed with: jeff, dfr MFC after: 2 weeks
* Tighten up the error-handling in nlm_get_rpc. While I'm here, fix adfr2008-04-161-3/+7
| | | | couple of spelling mistakes in comments.
* Doh! Extra mips in the path. Remove these and wait until tomorrowimp2008-04-1611-600/+0
| | | | when I have more brain cells to try again.
* Turns out the machine/asm.h isn't needed here, since SYS.h alreadyimp2008-04-1610-12/+1
| | | | included it.
* FreeBSD/mips libc support. Merged from perforce mips2-jnpr branch.imp2008-04-1611-0/+611
|
* _vfork is not in libthr, remove the reference.davidxu2008-04-161-1/+0
|
* Mention support for nForce MCP73.yongari2008-04-161-2/+4
| | | | Touch Dd.
* Fix one-byte buffer overflow: NUL gets written to the buffer, but isn'tcperciva2008-04-151-1/+1
| | | | | | | | | | | counted in the width specification in scanf. This is not a security problem, since this function is only used to parse a user's configuration file. Submitted by: Joerg Sonnenberger Obtained from: dragonflybsd MFC after: 1 week
* Add very limited support for the isc-dhclient. It will almostly certaintlybrooks2008-04-151-0/+4
| | | | | | | | only work if there's just one interface doing dhcp. This version implements the same logic as the version in the PR, but uses pgrep to be less verbose. PR: conf/95905 MFC after: 1 week
* When sending packets directly to the DHCP server, use a socket and sendbrooks2008-04-151-0/+15
| | | | | | | | directly rather than bogusly sending it out as a link layer broadcast (which fails to be received on some networks). PR: bin/96018 MFC after: 2 weeks
OpenPOWER on IntegriCloud