summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Since dynamic allocation of device major numbers so far have notphk2003-04-131-1/+0
| | | | | resulted in any earthquakes, civil wars or early onset hair-loss, I think we can do without the printf announcing the assigned number.
* Time has run from the "run GEOM in userland" harness, and the new regressionphk2003-04-1315-140/+0
| | | | | | | test is built to test GEOM as running in the kernel. This commit is basically "unifdef -D_KERNEL" to remove the mainly #include related code to support the userland-harness.
* Driver for Granch SBNI16 SHDSL modemfjoe2003-04-136-0/+1263
| | | | | Submitted by: Denis I. Timofeev <timofeev@granch.ru> MFC after: 1 week
* No need to unlock if error detected before locking.hsu2003-04-131-2/+4
| | | | Submitted by: harti
* Use vm_object_pip_wait() rather than reimplementing it.alc2003-04-131-2/+1
|
* The dpt, ex and idt modules are for i386 only.nyan2003-04-131-3/+3
|
* Permit vm_object_pip_add() and vm_object_pip_wakeup() on the kmem_objectalc2003-04-131-2/+4
| | | | without Giant held.
* Eliminate unnecessary gotos from kmem_malloc().alc2003-04-131-6/+3
|
* - Unbreak priority prop. for timeshare threads. Always place something onjeff2003-04-121-3/+1
| | | | | | | | the current queue if its priority is really elevated. This needs more work as there are cases where a next queue kse could be holding up what would be a curr queue kse, and thus hurting interactivity. Also, when a thread with an elevated priority has its priority lowered it should be placed back on the next queue.
* If we hit access ahead of a spoil event, we should have negativephk2003-04-121-7/+3
| | | | delta access-counts and proceed.
* Fix a bug which resulted in orphanization getting confused every nowphk2003-04-121-1/+1
| | | | and then.
* protoypes for the dos_partition encoding functions.phk2003-04-121-1/+3
|
* Options that go into homonymous headers shouldn't specify the header name.des2003-04-126-11/+11
| | | | Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* Retire the experimental bio_taskqueue(), it was not quite as usable asphk2003-04-122-29/+0
| | | | | hoped. It can be revived from here, should other drivers be able to use it.
* Remove the unused ioctl routine.phk2003-04-121-32/+0
|
* Retire the "frontstuff" record keeping, it was no match for thephk2003-04-128-38/+1
| | | | in-band meta-data of BSD labels and a more complex solution will be needed.
* Move the functions for encoding decoding struct dos_partition intophk2003-04-125-18/+77
| | | | a separate .c file so they can be used from userland as well.
* - Clean up some debug code left over from my earlier megacommit.jeff2003-04-121-17/+8
|
* - We only care about the base priority. Ignore the SCHED_FIFO_BIT so thatjeff2003-04-121-5/+5
| | | | | | we dont get confused. Reported and debugged by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* fix typo in the previous commit.simokawa2003-04-121-1/+1
|
* Rename MBUF_FRAG_TEST to MBUF_STRESS_TEST as it will be extendedsilby2003-04-123-10/+9
| | | | to include more than just frag tests.
* Style fix.davidxu2003-04-121-1/+1
|
* Fix race between a process registering a NOTE_EXIT EVFILT_PROC event andkbyanc2003-04-121-0/+15
| | | | | | | | | | | the target process exiting which causes attempts to register the kevent to randomly fail depending on whether the target runs to completion before the parent can call kevent(2). The bug actually effects EVFILT_PROC events on any zombie process, but the most common manifestation is with parents trying to monitor child processes. MFC after: 2 weeks Sponsored by: NTT Multimedia Communications Labs
* - Use the sched_nice() api instead of setting the nice value directly.jeff2003-04-121-2/+3
| | | | Tested by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Check SIG_HOLD action ealier to avoid missing test it in later code.davidxu2003-04-121-9/+7
|
* - Call sched_exit_{kse,thread} and sched_fork{kse,thread} so that thr worksjeff2003-04-111-0/+6
| | | | with ULE. This was not strictly required by sched_4bsd.
* - Add sched_exit_*jeff2003-04-111-6/+17
| | | | - Call sched_exit_kse() from sched_exit() instead of implementing it here.
* - Only select kseqs with more than one kse to steal. The running ksejeff2003-04-111-1/+1
| | | | is reflected in the load now and you can't very well migrate that.
* - When migrating a kse from one kseq to the next actually insert it ontojeff2003-04-111-22/+19
| | | | | | | | the second kseq's run queue so that it is referenced by the kse when it is switched out. - Spell ksq_rslices properly. Reported by: Ian Freislich <ianf@za.uu.net>
* Add new sysctl MIB (hw.acpi.supported_sleep_state) to indicateiwasaki2003-04-111-0/+23
| | | | | | | | | the list of supported sleep state. This should help people understand what following message means. acpi0: AcpiGetSleepTypeData failed - AE_NOT_FOUND MFC after: 3 days
* Clarify NO_SWAPPING description.mike2003-04-111-2/+3
|
* Copy %gs from current CPU not from a stale PCB backup.davidxu2003-04-112-0/+4
|
* set_user_ldt_rv() should check same proc not thread,davidxu2003-04-112-2/+2
| | | | this commit fixes an user LDT smp rendezvous bug.
* Style(9) a comment added in previous commit.gallatin2003-04-111-2/+4
| | | | Pointed out by: bde
* - Call ether_ifdetach() before shutting down the hardware.mux2003-04-111-20/+18
| | | | | | | | | | - Remove a useless device_is_alive() check. - Disable interrupts if bus_child_present() so that this check is more useful. This fixes the hangs I was seeing when unloading the fxp driver. Suggestions from: hsu, njl
* The data in an sf_buf should not be modified by the mbuf system. Markalc2003-04-111-1/+1
| | | | | | the mbuf as read only. Reviewed by: gallatin
* - Add a SYSCTL node for the ule scheduler.jeff2003-04-111-300/+406
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow user adjustable min and max time slices (suggested by hiten). - Change the SLP_RUN_MAX to 100ms from 2 seconds so that we learn whether a process is interactive or not much more quickly. - Place a process on the current run queue if it is interactive or if it is running at an interrupt thread priority due to priority prop. - Use the 'current' timeshare queue for interrupt threads, realtime threads, and idle threads that are running at higher priority due to priority prop. This fixes problems where priorities would have been elevated but we would not check the timeshare run queue until other lower priority tasks were no longer runnable. - Keep an array of loads indexed by the priority class as well as a global load. - Keep an bucket of nice values with a count of the number of kses currently runnable with that nice value. - Keep track of the minimum nice value of any running thread. - Remove the unused short term sleep accounting. I was attempting to use this for load balancing but it didn't work out. - Define a kseq_print() for use with debugging. - Add KTR debugging at useful places so we can easily debug slice and priority assignment. - Decouple the runq assignment from the kseq assignment. kseq_add now keeps track of statistics. This is done so that the nice and load is still tracked for the currently running process. Previously if a niced process was added while a non nice process was running the niced process would still get a slice since it was not aware of the unnice process. - Make adjustments for the sched api changes.
* - Catch up with sched api changes.jeff2003-04-111-15/+48
|
* - Adjust sched hooks for fork and exec to take processes as arguments insteadjeff2003-04-115-20/+27
| | | | | | | | | | of ksegs since they primarily operation on processes. - KSEs take ticks so pass the kse through sched_clock(). - Add a sched_class() routine that adjusts a ksegrp pri class. - Define a sched_fork_{kse,thread,ksegrp} and sched_exit_{kse,thread,ksegrp} that will be used to tell the scheduler about new instances of these structures within the same process. These will be used by THR and KSE. - Change sched_4bsd to reflect this API update.
* I deserve a big pointy hat for having missed all those referencesmux2003-04-1017-50/+42
| | | | to bus_dmasync_op_t in my last commit.
* - Clean up the fxp_release() and fxp_detach() functions.mux2003-04-101-46/+46
| | | | | | | | - Be sure to teardown the interrupt first so that "kldunload if_fxp" doesn't panic the box. It's now deadlocking rather than crashing, which isn't really better, but I'm unsure this is fxp(4)'s fault. - Change a bus_dmamap_sync() call to also do a BUS_DMASYNC_PREREAD now that we can pass several operations.
* Convert the SMP_TSC kernel option into a loader tunable. Also enabledes2003-04-105-20/+40
| | | | | the TSC timecounter on single-CPU systems even when they are running an SMP kernel.
* Change the operation parameter of bus_dmamap_sync() from anmux2003-04-1014-116/+60
| | | | | | enum to an int and redefine the BUS_DMASYNC_* constants as flags. This allows us to specify several operations in one call to bus_dmamap_sync() as in NetBSD.
* Remove a potential panic condition introduced by reduced TCP waitrwatson2003-04-102-10/+30
| | | | | | | | | | | | | | | | | | state. Those changed attempted to work around the changed invariant that inp->in_socket was sometimes now NULL, but the logic wasn't quite right, meaning that inp->in_socket would be dereferenced by cr_canseesocket() if security.bsd.see_other_uids, jail, or MAC were in use. Attempt to clarify and correct the logic. Note: the work-around originally introduced with the reduced TCP wait state handling to use cr_cansee() instead of cr_canseesocket() in this case isn't really right, although it "Does the right thing" for most of the cases in the base system. We'll need to address this at some point in the future. Pointed out by: dcs Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Enable loadable modules to be unloaded on alphas with shared isagallatin2003-04-101-9/+21
| | | | | interrupts by only disabling the interrupt in hardware if the handler being removed is the only handler.
* - Kill the pv_flags member of the alpha mdpage since it stop being usedjhb2003-04-104-22/+0
| | | | | | in rev 1.61 of pmap.c. - Now that pmap_page_is_free() is empty and since it is just a hack for the Alpha pmap, remove it.
* Check M_TRYWAIT as a flag, not a constant, in MBTOM() mbuf allocatorrwatson2003-04-101-1/+1
| | | | to malloc flag converter.
* Move the _oncpu entry from the KSE to the thread.julian2003-04-1015-16/+19
| | | | | The entry in the KSE still exists but it's purpose will change a bit when we add the ability to lock a KSE to a cpu.
* Print real memory/avail memory on startup like other platforms. Hidejake2003-04-101-2/+10
| | | | printing the model under bootverbose.
* Spell 55 with two '5'ssos2003-04-101-2/+2
|
OpenPOWER on IntegriCloud