| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mtx_enter(lock, type) becomes:
mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks)
mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized)
similarily, for releasing a lock, we now have:
mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN.
We change the caller interface for the two different types of locks
because the semantics are entirely different for each case, and this
makes it explicitly clear and, at the same time, it rids us of the
extra `type' argument.
The enter->lock and exit->unlock change has been made with the idea
that we're "locking data" and not "entering locked code" in mind.
Further, remove all additional "flags" previously passed to the
lock acquire/release routines with the exception of two:
MTX_QUIET and MTX_NOSWITCH
The functionality of these flags is preserved and they can be passed
to the lock/unlock routines by calling the corresponding wrappers:
mtx_{lock, unlock}_flags(lock, flag(s)) and
mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN
locks, respectively.
Re-inline some lock acq/rel code; in the sleep lock case, we only
inline the _obtain_lock()s in order to ensure that the inlined code
fits into a cache line. In the spin lock case, we inline recursion and
actually only perform a function call if we need to spin. This change
has been made with the idea that we generally tend to avoid spin locks
and that also the spin locks that we do have and are heavily used
(i.e. sched_lock) do recurse, and therefore in an effort to reduce
function call overhead for some architectures (such as alpha), we
inline recursion for this case.
Create a new malloc type for the witness code and retire from using
the M_DEV type. The new type is called M_WITNESS and is only declared
if WITNESS is enabled.
Begin cleaning up some machdep/mutex.h code - specifically updated the
"optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN
and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently
need those.
Finally, caught up to the interface changes in all sys code.
Contributors: jake, jhb, jasone (in no particular order)
|
|
|
|
| |
Pointy-hat to: asmodai
|
|
|
|
|
|
|
| |
* a ">" is really ">=" ;
* do not try to fetch zero-sized blocks from the card;
* make sure that bpf gets the packets it wants even with
bridging active;
|
|
|
|
| |
header, or we would have a negative length passed to ether_input().
|
|
|
|
| |
Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
|
|
|
|
| |
Pointed out by: Asmodai
|
|
|
|
| |
Approved by: wpaul
|
|
|
|
| |
Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
|
|
|
|
| |
Initalise is not an english word.
|
|
|
|
|
|
|
|
| |
adv_free() as the ISA probe routine doesn't malloc() ccb_infos but does
call adv_free().
- Release the ISA-only overrun DMA tags, bufs, and maps if the probe fails.
Tested by: rwatson
|
|
|
|
| |
compilation.
|
|
|
|
|
|
| |
include the changes 1.49 was supposed to have.
Noticed by: peter
|
|
|
|
| |
cards will work too.
|
|
|
|
| |
Obtained from: NetBSD/OpenBSD
|
| |
|
|
|
|
|
| |
modify default buffer size heuristic to not max out at 4k. mpg123 should now
behave better under load.
|
|
|
|
| |
Not pretty but it works (I hope)...
|
| |
|
| |
|
| |
|
|
|
|
|
| |
devs other than the first, and allowed to clone a nonexistent
device..
|
|
|
|
| |
Compatability is not an existing english word.
|
|
|
|
| |
Seperate does not exist in the english language.
|
| |
|
|
|
|
|
|
| |
backwards in the three drivers which want to do that.
Reviewed by: mikeh
|
|
|
|
| |
There is no such thing as wierd in the english language.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Add the id for the Rio 800 USB.
Submitted by: Wesley Morgan <morganw@chemikals.org>
|
|
|
|
| |
Submitted by: Orion Hodson <O.Hodson@cs.ucl.ac.uk>
|
|
|
|
| |
Submitted by: Orion Hodson <O.Hodson@cs.ucl.ac.uk>
|
|
|
|
|
|
|
|
|
| |
except for setting it. Also remove count from aha and replace it with
optional.
Also add commented out pccard lines for all the old card drivers.
They have to be commented out until they are converted because it
causes problems in NEWCARD.
|
|
|
|
|
| |
Created with: sed(1)
Reviewed by: md5(1)
|
|
|
|
|
|
|
| |
fondling implementation details.
Created with: sed(1)
Reviewed by: md5(1)
|
|
|
|
|
|
|
| |
<sys/queue.h> implementation details.
Created with: /usr/sbin/sed
Reviewed with: /sbin/md5
|
| |
|
|
|
|
|
|
|
| |
striped plexes. This prevents various panics introduced in the last
rewrite of the locking code.
Suffered by: "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
|
|
|
|
|
|
| |
amount of GPL'd firmware in the driver, it will only be built as a module.
Approved by: cg
|
|
|
|
| |
Reviewed by: imp
|
|
|
|
| |
(alpha-gdbstub.c got sync'ed up a bit with the i386 version)
|
|
|
|
|
|
| |
Turn off semaphores. Nobody else implements them, and there is lots of
AML out there which does totally absurd things with them, meaning that
if we try to do the right thing we are guaranteed to fail.
|
| |
|
|
|
|
|
|
| |
Don't print temperatures at attach time - they're usually wrong.
Use acpi_EvaluateInteger instead of doing things the hard way.
|
|
|
|
|
|
|
|
|
| |
Use acpi_EvaluateInteger where possible.
Use FuncName rather than &FuncName when passing function addresses.
Don't evaluate the _REG method when we attach to an address space -
AcpiInstallAddressSpaceHandler does it for us.
|
|
|
|
|
|
|
|
|
|
|
| |
acpi_EvaluateInteger.
Use acpi_EvaluateInteger instead of doing things the hard way where
possible.
AcpiSetSystemSleepState (unofficial) becomes AcpiEnterSleepState.
Use the AcpiGbl_FADT pointer rather than searching for the FADT.
|
| |
|
|
|
|
|
|
| |
incompletely converting simplelocks to mutexes (COM_LOCK() is supposed
to hide the SMP locking internals, but it now depends on mutex interfaces
being visible).
|
| |
|
| |
|