Commit Graph

107191 Commits

Author SHA1 Message Date
Julian Elischer
ed062c8d66 Refactor a bunch of scheduler code to give basically the same behaviour
but with slightly cleaned up interfaces.

The KSE structure has become the same as the "per thread scheduler
private data" structure. In order to not make the diffs too great
one is #defined as the other at this time.

The KSE (or td_sched) structure is  now allocated per thread and has no
allocation code of its own.

Concurrency for a KSEGRP is now kept track of via a simple pair of counters
rather than using KSE structures as tokens.

Since the KSE structure is different in each scheduler, kern_switch.c
is now included at the end of each scheduler. Nothing outside the
scheduler knows the contents of the KSE (aka td_sched) structure.

The fields in the ksegrp structure that are to do with the scheduler's
queueing mechanisms are now moved to the kg_sched structure.
(per ksegrp scheduler private data structure). In other words how the
scheduler queues and keeps track of threads is no-one's business except
the scheduler's. This should allow people to write experimental
schedulers with completely different internal structuring.

A scheduler call sched_set_concurrency(kg, N) has been added that
notifies teh scheduler that no more than N threads from that ksegrp
should be allowed to be on concurrently scheduled. This is also
used to enforce 'fainess' at this time so that a ksegrp with
10000 threads can not swamp a the run queue and force out a process
with 1 thread, since the current code will not set the concurrency above
NCPU, and both schedulers will not allow more than that many
onto the system run queue at a time. Each scheduler should eventualy develop
their own methods to do this now that they are effectively separated.

Rejig libthr's kernel interface to follow the same code paths as
linkse for scope system threads. This has slightly hurt libthr's performance
but I will work to recover as much of it as I can.

Thread exit code has been cleaned up greatly.
exit and exec code now transitions a process back to
'standard non-threaded mode' before taking the next step.
Reviewed by:	scottl, peter
MFC after:	1 week
2004-09-05 02:09:54 +00:00
Brian Somers
057f1760a8 Make ppp WARNS=5 clean 2004-09-05 01:46:52 +00:00
Christian Brueffer
3f61368f03 Autogenerate device listings for el(4), ep(4) and sn(4)
MFC after:	3 days
2004-09-05 01:36:08 +00:00
Christian Brueffer
ebc0e3306f Add el(4), ep(4) and sn(4)
MFC after:	3 days
2004-09-05 01:34:40 +00:00
Christian Brueffer
80a879ed68 - move list of supported devices into a HARDWARE section
- sort the hardware list
- misc fixes
- bump document date

MFC after:	3 days
2004-09-05 01:31:44 +00:00
Christian Brueffer
e3aec7a5fb - add a HARDWARE section
- misc fixes
- bump document date

MFC after:	3 days
2004-09-05 01:30:30 +00:00
Christian Brueffer
231c2f4202 - add a HARDWARE section
- bump document date

MFC after:	3 days
2004-09-05 01:28:50 +00:00
Christian Brueffer
889cd9b27e Refine the entry for the SMC card
MFC after:	3 days
2004-09-05 00:19:32 +00:00
Christian Brueffer
4a15801752 Autogenerate device listings for re(4), sis(4) and snc(4)
MFC after:	3 days
2004-09-05 00:06:41 +00:00
Christian Brueffer
43b08ac9bf Add re(4) and sis(4)
MFC after:	3 days
2004-09-05 00:01:07 +00:00
Christian Brueffer
0cfd01da6b - move list of supported devices into a HARDWARE section
- mention which chip the devices use (where known)
- bump document date

MFC after:	3 days
2004-09-04 23:56:56 +00:00
Christian Brueffer
318f7adfc5 - move list of supported devices into a HARDWARE section
- fix spacing in the Corega entry
- bump document date

MFC after:	3 days
2004-09-04 23:54:41 +00:00
Christian Brueffer
96af2f39d9 - the NEC PC-9801N-25 is supported as well
- really sort the device list this time

MFC after:	3 days
2004-09-04 23:07:28 +00:00
Tim Kientzle
8a95c5cb6e Some old tar archives rely on "regular-file-plus-trailing-slash" to
denote a directory.  Unfortunately, in the presence of GNU or POSIX
extensions, this code was checking the truncated filename stored in the
regular header rather than the full filename stored in the extended
attribute.  As a result, long filenames with '/' in just the right
position would trigger this check and be erroneously marked as
directories.  Move the check so it only considers the full filename.
Note: the check can't simply be disabled for archives that contain
these extensions because there are some very broken archivers out
there.

Thanks to: Will Froning
MFC after: 3 days
2004-09-04 21:49:42 +00:00
Simon L. B. Nielsen
ea0f517b92 Add a standard 2 clause BSD license.
Approved by:	wilko
MFC after:	3 days
2004-09-04 21:15:37 +00:00
Warner Losh
e5dc5f61fb Expand the 4.x -> current updating section. Update to show how to use
make kernel.  Update the compatibility slice section.  Note about
updating devices in the kernel config file.  MAKEOBJDIRPREFIX changes
and mention the port alternative to COMPAT4X=yes.  Fix copyright.

This should be MFC'd.
2004-09-04 21:03:10 +00:00
Simon L. B. Nielsen
418eba0242 - Auto generate device listings for the ex and ie drivers.
MFC after:	3 days
2004-09-04 20:55:36 +00:00
Hiroki Sato
b03555ed8a Fix some wording to make the explanation clear.
Pointed out and reviewed by:	ru
2004-09-04 20:53:25 +00:00
Simon L. B. Nielsen
6b7e211c1a Make sure ampersand is encoded as & since jade seems to be confused
when it is encoded as & inside an entity.

MFC after:	3 days
2004-09-04 20:40:15 +00:00
Simon L. B. Nielsen
d92f8bed06 - Properly capitalize Ethernet.
- Add a HARDWARE section which lists supported devices.

MFC after:	3 days
2004-09-04 20:37:59 +00:00
Simon L. B. Nielsen
4040d2353a - Add a HARDWARE section which lists supported devices.
MFC after:	3 days
2004-09-04 20:09:11 +00:00
Ian Dowse
e3cce87239 Reset the seek pointer to 0 when a file is successfully opened,
since otherwise the initial seek offset will contain the directory
offset of the filesystem block that contained its directory entry.
This bug was mostly harmless because typically the directory is
less than one filesystem block in size so the offset would be zero.
It did however generally break loading a kernel from the (large)
kernel compile directory.

Also reset the seek pointer when a new inode is opened in read_inode(),
though this is not actually necessary now because all callers set
it afterwards.
2004-09-04 14:54:01 +00:00
Hiroki Sato
8051b07990 Update release notes:
GNOME 2.6.2 and KDE 3.3.0.
2004-09-04 12:57:25 +00:00
Stefan Farfeleder
27fdb57eab Add a regression test for <tgmath.h>. 2004-09-04 11:34:53 +00:00
Christian Brueffer
a8a1a9408d Add snc(4)
MFC after:	3 days
2004-09-04 11:15:12 +00:00
Christian Brueffer
52e69b8fa7 - move list of supported adapters into a HARDWARE section
- sort the device list
- some minor fixes

MFC after:	3 days
2004-09-04 11:13:32 +00:00
Christian Brueffer
79e8b03a3f Properly capitalize Gigabit Ethernet
MFC after:	3 days
2004-09-04 11:12:03 +00:00
Hiroki Sato
367652d294 New release notes (changes in August 2004):
agp(4) AMD64 GART support,
	hw.pci.allow_unsupported_io_range removed,
	debug.kdb.stop_cpus sysctl,
	COMPAT_LINUX32 kernel option on amd64,
	mac_bsdextended_firstmatch_enabled sysctl,
	mac_bsdextended_logging sysctl,
	MP_WATCHDOG kernel option and debug.leak_schedlock sysctl,
	NET_WITH_GIANT kernel option and debug.mpsafenet loader tunable,
	debug.mpsafevm loader tunable,
	vm_map_findspace(9) now uses an O(log n) algorithm,
	new ipfw(4) rule "jail",
	IPFIREWALL_FORWARD kernel option,
	PFIL_HOOKS is now always complied into the kernel,
	autofs filesystem and libautofs(3) added,
	GEOM_RAID3 geom class and graid3(8) added,
	GEOM_UZIP geom class added,
	acpidump(8) SSDT tables support,
	dd(1) fillchar option,
	jail(8) -l option,
	OpenSSL VIA C3 PadLock ACE support imported, and
	FreeBSD's default X Window System is Xorg now.

Update release notes:
	ADAPTIVE_GIANT enabled on i386 by default,
	hme(4) now MI,
	static linker TLS support,
	LIBPTHREAD_PROCESS_SCOPE,
	GNU sort updated to a coreutils snapshot as of 2004/08/12,
	ISC DHCP client updated to 3.0.1,
	lukemftpd updated to a snapshot as of 2004/08/09, and
	pf from OpenBSD 3.5-stable.
2004-09-04 11:01:21 +00:00
Christian Brueffer
a0fa04aaeb Document a couple of build knobs
PR:		misc/71032 (partly)
Submitted by:	Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Reviewed by:	ru
MFC after:	3 days
2004-09-04 10:05:17 +00:00
Ruslan Ermilov
0187838b3b Fixed build with DEVICE_POLLING defined. 2004-09-04 07:54:05 +00:00
MIHIRA Sanpei Yoshiro
e7934ccbaa Add support Western Digital External USB HDD
ONSPEC entry are sorted

PR:		kern/71031
Submitted by:	Johann Hugo <jhugo@icomtek.csir.co.za>
MFC after:	1 week
2004-09-04 07:07:35 +00:00
Ruslan Ermilov
c11c127926 Let kmod.mk touch opt_*.h files as needed.
Inspired by:	imp's email
2004-09-04 06:37:58 +00:00
Alan Cox
b102e653ad Enable debug.mpsafevm by default on amd64 and i386. This enables copy-on-
write and zero-fill faults to run without holding Giant.  It is still
possible to disable Giant-free operation by setting debug.mpsafevm to 0 in
loader.conf.
2004-09-04 05:51:54 +00:00
Bruce A. Mah
bbd414503b Minor grammar and markup tweaks. In four cases, <function></function>
elements were replaced with new manpage entities.
2004-09-04 05:14:45 +00:00
Warner Losh
9f4693dbb4 Sort files alphabetically 2004-09-04 03:32:15 +00:00
Marcel Moolenaar
ef0cd312df Unbreak memmove(). Return the dst argument. While here, fix the END
macro to actually reference memmove, not memcpy.
2004-09-04 00:23:15 +00:00
Marcel Moolenaar
4c36bcaa87 Unbreak memcpy(). memcpy() is defined to return the dst argument.
By using r8 instead of r14 to do the swap, we put the dst argument
in the return register. Since bcopy() doesn't clobber r8, we don't
have to do anything else. This fixes ports/textproc/aspell.
2004-09-04 00:04:58 +00:00
Christian Brueffer
00bf32b031 Grammar fix
MFC after:	3 days
2004-09-03 23:53:02 +00:00
Christian Brueffer
fd69947b4d Properly capitalize Ethernet
MFC after:	3 days
2004-09-03 23:52:26 +00:00
Stefan Farfeleder
6549b8a280 Add a workaround to recognise I/_Complex_I as complex arguments. Although
the GCC manual claims that the expression 1.0fi has type float _Complex,
__builtin_types_compatible_p(float _Complex, __typeof__(1.0fi))) yields 0.
2004-09-03 23:44:09 +00:00
Stefan Farfeleder
a551dea2a8 Use the keyword '_Complex' rather than the macro 'complex' since
applications are allowed to undefine the latter.
2004-09-03 23:31:28 +00:00
MIHIRA Sanpei Yoshiro
3785db4f85 Add support Nikon CoolScan LS40 ED
PR:		kern/71139
Submitted by:	Pierre DAVID <Pierre.David@crc.u-strasbg.fr>
MFC after:	1 week
2004-09-03 23:29:01 +00:00
Stefan Farfeleder
9b3310685b Embarrassing typo: s/nextbyint/nearbyint/ 2004-09-03 23:26:55 +00:00
Christian Brueffer
3bf5804eed Autogenerate device listing for wb(4)
MFC after:	3 days
2004-09-03 23:23:11 +00:00
Christian Brueffer
d786c4c73d Add ubsa(4), uftdi(4), uplcom(4) and wb(4)
MFC after:	3 days
2004-09-03 23:21:37 +00:00
MIHIRA Sanpei Yoshiro
44cf44fbff Add support Qualcomm CDMA modem
PR:		kern/71043
Submitted by:	Tomas Krivanek <tom@atack.cz>
MFC after:	1 week
2004-09-03 23:19:27 +00:00
Christian Brueffer
990abd7afe - change layout of the hardware list to the one used by other manpages
- grammar fixes

MFC after:	3 days
2004-09-03 23:18:16 +00:00
Christian Brueffer
f766821566 - change layout of the hardware list to the one used by other manpages
- add a missing word

MFC after:	3 days
2004-09-03 23:17:21 +00:00
Christian Brueffer
120ac37675 - change layout of the hardware list to the one used by other manpages
- fix spacing of one hardware entry
- grammar fix

MFC after:	3 days
2004-09-03 23:16:07 +00:00
Christian Brueffer
35820ff9af - move list of supported adapters into a HARDWARE section
- properly capitalize (Fast) Ethernet
- bump document date

MFC after:	3 days
2004-09-03 23:13:54 +00:00