summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19Use taskq rather than workq to remove unwanted alias.Kenneth R Westerback
ok mikeb kettenis (for earlier version)
2014-12-19Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gatherKenji Aoyama
'C-bus' device drivers in it. More devices on cbus(4) will be added, hopefully :-) ok miod@
2014-12-19Support source-hash and random with tables and dynifs; not just pools.Reyk Floeter
This finally allows to use source-hash for dynamic loadbalancing, eg. "rdr-to <hosts> source-hash", instead of just round-robin and least-states. An older pre-siphash version of this diff was tested by many people. OK tedu@ benno@
2014-12-19Comment is no longer true, remove it.Ryan Thomas McBride
2014-12-19remove hash.h. no longer needed. ok reykTed Unangst
2014-12-19Remove an unused sys/hash.h include from db_structinfo.cReyk Floeter
(this file is only compiled with "option DDB_STRUCT"). ok guenther@
2014-12-19lonely bcopy called me by nameTheo de Raadt
2014-12-19another handful of bcopy -> memcpy because there is no overlapTheo de Raadt
2014-12-19start retiring the nointr allocator. specify PR_WAITOK as a flag as aTed Unangst
marker for which pools are not interrupt safe. ok dlg
2014-12-19if you really must look inside the pool to decide if you've calledTed Unangst
pool_init already, the pr_size field is the least worst field to peek at.
2014-12-19add messages to #error so we know what's what (and so unifdef doesn't poop)Ted Unangst
2014-12-19Make use of m_defrag() in re_encap().Brad Smith
2014-12-19rename buffer to digest, more clear. ok deraadtTed Unangst
2014-12-19convert bcopy/zero to memcpy. ok deraadt djmTed Unangst
2014-12-19timestamp empty pages, and only free them if theyve been idle for at leastDavid Gwynne
a second. this basically brings back the functionality that was trimmed in r1.53, except this version uses ticks instead of very slow hardware clock reads. ok tedu@
2014-12-19the last commit changed LIST_INSERT_HEAD to TAILQ_INSERT_TAIL cos theDavid Gwynne
latter is cheaper, but i forgot to change the thing that pulls pages off those lists to match the change in direction. the page lists went from LIFO to FIFO. this changes pool_update_curpage to use TAILQ_LAST so we go back to LIFO. pointed out by and ok tedu@
2014-12-19Rearrange mostly vmxnet3_init() to look like other Ethernet drivers.Brad Smith
ok reyk@
2014-12-19sha512 produces enough output, we can simplify extraction by not looping.Ted Unangst
ok deraadt djm
2014-12-19replace the page LISTS with page TAILQs. this will let me pull pages fromDavid Gwynne
either end of the lists cheaply. ok kettenis@ tedu@
2014-12-18remove two useless and unused hash penalty definesTed Unangst
2014-12-18obvious non-overlap bcopy -> memcpyTheo de Raadt
2014-12-18convert one hot looking bcopy to memcpyTed Unangst
2014-12-18delete a whole mess of unnecessary caddr_t castsTed Unangst
2014-12-18document power capacity units. from david higgsTed Unangst
then change everything from mu to u, as more traditional. ok deraadt
2014-12-18only unroll on i386 and amd64 (where confirmed to be much faster).Ted Unangst
naddy found sparc64 gets a little slower when unrolled. ok deraadt
2014-12-18use suspend_randomness() and resume_randomness()Theo de Raadt
2014-12-18Wrap more of these long lines.Reyk Floeter
2014-12-18wrap unreasonably long linesTheo de Raadt
2014-12-18The VM host might send multiple messages at once but vmt(4) onlyReyk Floeter
processed one of time per second. Change the code to process all queued messages without delay immediately. This fixes two things: a) the vmt time sensor is available on boot when ntpd -s is loaded and b) the random seeding on resume (OS_Resume message) is executed almost immediately and not delayed by about 20 seconds. ok deraadt@
2014-12-18use siphash for pf_lb. for ipv6, we stretch it out a bit, but good enough.Ted Unangst
ok reyk
2014-12-18perform cpu setperf at same position in sequence as acpi.cTheo de Raadt
2014-12-18suspend & resume RNG subsystemTheo de Raadt
2014-12-18suspend and resume the RNG (at what looks like the right spots)Theo de Raadt
ok reyk djm
2014-12-18When a VM resume occurs, request information from the VM and enqueue asTheo de Raadt
entropy - then do a RNG resume. If the VM signals a boot/reboot/suspend action, push the RNG into suspend. ok reyk djm
2014-12-18Create a suspend/resume infrastructure for the RNG. At suspend time,Theo de Raadt
process all queued entropy and create a brand new pool to prevent backtracking upon resume. At resume time, process the entropy queue (since other resume code paths which run earlier can enqueue entropy) and force all higher to reseed. ok reyk djm
2014-12-18If support is present, use rdrand() at resume time. Make the rdrand()Theo de Raadt
function easier to call. ok reyk djm
2014-12-18Change the link state change routing message generation to a taskq.Kenneth R Westerback
One less workq to worry about. Tweaks from many. ok mpi@ mikeb@
2014-12-18Merge from NetBSD r1.54 from Matthias Drochner:Martin Pieuchot
-- kick out the error-prone handcrafted single-linked list of cardbus functions; replace by a simple *array[8] -- In other words, prevent a use after free when removing a cardbus function. ok deraadt@, miod@
2014-12-18ansi function prototypes. no functional change.David Gwynne
2014-12-18white space tweaks, no functional change.David Gwynne
2014-12-18replace splhigh and a simplelock with a mutex.David Gwynne
slight tweak and testing by deraadt@ ok miod@
2014-12-18If a host controller has been detached or reported a halt condition itMartin Pieuchot
should be considered as dead. In such condition the stack no longer submits I/O or schedules any USB task for its bus. However we need an explore task to detach the root hub since only the task thread is supposed to discover buses and attach/detach devices in order to avoid races. So reset the bus' dying flag when marking it as disconnecting in order to let the task be scheduled. This should be safe because a detached or halted HC should not trigger any new interrupt. Fix a panic when detaching USB PCMCIA cards reported by Tilo Stritzky.
2014-12-18Unmap the MP hatch and ACPI resume trampolines when not in active use.Mike Larkin
ok deraadt@
2014-12-17remove lock.h from uvm_extern.h. another holdover from the simpletonlockTed Unangst
era. fix uvm including c files to include lock.h or atomic.h as necessary. ok deraadt
2014-12-17unroll loops for sha2. quite a bit faster for amd64.Ted Unangst
ok deraadt millert
2014-12-17minimal removal of simplelock to eliminate lock.h dependencyTed Unangst
2014-12-17fix/reduce header dependencies. clock.c doesn't need any of this uvm.Ted Unangst
ok deraadt kettenis
2014-12-17Avoid premature masking in the interrupt handler code that checks for removedMark Kettenis
hardware. ok mpi@, deraadt@