Commit Graph

157682 Commits

Author SHA1 Message Date
xtraeme 868ef0036d struct cpu_info: add a ci_feature2_flags member.
identcpu: print extended cpuid features with ci_feature2_flags.

"Looks good" by christos and njoly.
2007-03-16 18:52:03 +00:00
tsutsui ecde337fba Bump MAXBSIZE to 0x4000 because 16KB could be used by default
on newfs(8) in these days and we'll get "buf mem pool index 5" panic
in sys/kern/vfs_bio.c.
2007-03-16 18:39:21 +00:00
uwe a4c73117e3 Cosmetic changes in {sh3,sh4}_switch_setup to make them easier to read.
Same object code is generated.
2007-03-16 18:31:36 +00:00
tsutsui 2f7615dcc1 Fix compile with options DIAGNOSTIC.
(Hmm, no one has tried it since nathanw_sa merge..)
2007-03-16 18:29:35 +00:00
uwe 66f80b8d65 There's no sense in duplicating function prototype in preceding comments.
While here, make ANSI'fy idle() definition.
2007-03-16 18:20:40 +00:00
tsutsui ba9ffe28c4 Pass proper args to ksyms_init(). 2007-03-16 12:12:14 +00:00
pooka 9aca91baa1 use puffs_addvtype2mode() in puffs_fuse_node_mknod() 2007-03-16 08:17:36 +00:00
pooka 2df275c4cd va->va_mode doesn't contain the full argument to the mknod() system call,
so introduce puffs_addvtype2mode() and use that in null.c to generate the
proper syscall argument
2007-03-16 08:14:49 +00:00
skrll 108c9e1aa3 Move a comment and correct a typo. 2007-03-16 08:02:49 +00:00
skrll 25a1cb4e5b G/C some HAVE_GCC == 3 stuff 2007-03-16 08:01:05 +00:00
pooka b93b025715 return errno instead of -1 if file is not present in lookup 2007-03-16 07:43:14 +00:00
xtraeme 83cb0f0a96 Remove __P(), remove k8_powernow_init proto... it was moved to
x86/include/powernow.h long time ago.
2007-03-16 06:20:36 +00:00
ober 9a950d3d87 Updating GENERIC to include bpfilter to allow dhclient to work.
Also enable LFS which appears to work well so far.
2007-03-16 04:44:12 +00:00
uwe ee31aeeb82 Use dt to loop over md_upte in sh3_vector_tlbmiss. Saves a few instructions. 2007-03-16 04:22:22 +00:00
uwe 7233c378a1 Comment proc_trampoline properly. 2007-03-16 02:27:16 +00:00
uwe c67ce65c70 L_MD_PCB and L_MD_UPTE are small enough to be used as immediate values. 2007-03-16 01:30:56 +00:00
enami f1787e0a5d - Make -DINTREE works again.
- Compare test results with diff -w rather than cmp as we won't care about
  whitespace diffrences of df output.
2007-03-16 01:29:40 +00:00
wrstuden f094fdf1e6 While it was nice to re-add the html documentation for ntp,
the comment line had never been removed. Thus adding a
second one was not correct.

Keep the nicer-looking one and remove the newer one. build.sh syspkg
now completes for me.
2007-03-16 00:55:43 +00:00
gdt bb7ff76312 Refer to the location where TCP-relevant sysctl variables are
documented as sysctl(7) rather than sysctl(3).  (Section 3 describes
C-level functions to access variables, and 7 lists variables along
with their meaning.)
2007-03-15 23:43:18 +00:00
dyoung ab751193cc Don't open-code TAILQ_FOREACH(). KNF: Fix K&R prototypes and
parameter-type declarations.
2007-03-15 23:39:51 +00:00
dyoung 833cc39940 In nd6_lookup, shorten a staircase. KNF: change return (expr); to
return expr; throughout.  Fix K&R prototypes and parameter type
declarations.
2007-03-15 23:35:25 +00:00
dyoung f1c68f17f4 Bark if we cannot assign a link-local address. While I am here,
fix the grammar in a comment.
2007-03-15 23:26:04 +00:00
dyoung e75050de27 KNF: compare pointer w/ NULL, don't "check truth". Fix K&R parameter
types declaration.
2007-03-15 23:22:30 +00:00
uwe 1edd00232c Comment sh3_vector_tlbmiss. Same object code is generated. 2007-03-15 23:13:59 +00:00
skrll 335ac44f76 Restore previous semantics of PT_LWPINFO and make sure to lwp_addref the
LWP.

OK'ed by ad.
2007-03-15 20:55:15 +00:00
plunky 298d20388c remove C++ style comments 2007-03-15 19:47:50 +00:00
wiz c192a5db61 Mention AZALIA_DEBUG option. 2007-03-15 19:15:19 +00:00
matt 549524f84f Deal with MKPICLIB != no. 2007-03-15 17:27:15 +00:00
dogcow 0bb5e8a5a4 Comment out VGA_RASTEROPS; even the fine manpage says that it's deprecated
in favor of wscons(4).
2007-03-15 17:06:17 +00:00
dogcow d515e7b784 Some delicious copypasta from sys/dev/ic/vga.c, so that unichromefb will
compile (and possibly work) when option VGA_RASTERCONSOLE is present.
2007-03-15 16:58:36 +00:00
ad 1b83cbc3d6 sodopendfreel: Getting a bit over ambitious.. Go to splvm() before calling
pool_cache_put().
2007-03-15 16:28:31 +00:00
ad 30a3230b81 Document the ipl argument to pool_init. 2007-03-15 16:02:40 +00:00
drochner 82d96e1fac Keep track of the per-port status change notifications coming in
through the interrupt pipe; during exploration check only the ports
where we got such a notification. This speeds up things.
(I believe we should go a step further and use a thread per hub
instead of per bus. If power management gets implemented, we should
be able to react quickly on a resume event.)
Try to simplify the logics in the explore function a bit. (The reattach
thing was hacked in badly, not sure whether I broke it. Only used
by if_atu.)
Clean up some dead code.
2007-03-15 15:29:09 +00:00
drochner dc9d1127cc kill the private submatch function, use the generic one 2007-03-15 15:11:54 +00:00
drochner f59858473f in usbd_set_config_index, range-check the index 2007-03-15 15:11:19 +00:00
vanhu a270a7afb9 From Yves-Alexis Perez: enable monitoring of ipv6 address changes on Linux. 2007-03-15 14:12:12 +00:00
vanhu 7a26f531db enable monitoring of ipv6 addresse changes on linux 2007-03-15 14:12:11 +00:00
vanhu 0fca99dc2f Consider a negociation timeout when retry_counter is <=0 instead of < 0 2007-03-15 10:37:44 +00:00
reinoud 46b0abdb74 Note the new reinoud-bufcleanup branch and its goals. no ETA known nor a
fully worked out plan of action yet.
2007-03-15 02:36:27 +00:00
uwe eae42fb475 Arrange for data blocks to start on 32B cache line boundary. 2007-03-15 01:54:18 +00:00
matt e92466d560 Don't modify CSHPICFLAGS. (this causes .so file to be made when they shouldn't)
if MKPICLIB is "no", change CPPPICFLAGS otherwise add change CPPFLAGS
2007-03-15 00:59:32 +00:00
xtraeme f92cdd8cb5 Remove previous item... 2007-03-15 00:36:52 +00:00
xtraeme 3f5d332ca6 Ok... there were people really angry with this, backing it out. 2007-03-15 00:28:57 +00:00
xtraeme 3e5799ac62 Note addition of the new p4tcc driver. 2007-03-15 00:07:55 +00:00
xtraeme 88768d02b6 Call p4tcc_init(), the driver takes care of detection. 2007-03-15 00:04:37 +00:00
xtraeme 76460a0e78 Add a driver for the Pentium 4 and later models with feature TM
(Thermal Monitor).

This driver will throttle the CPU clock modulation, saving some
power, also known as ODMC (On Demand Modulation Clock).

The processor can change from 12.5% to 100% (there are two erratas,
so two levels might be skipped in the worst case).

If supported, you'll see the following sysctl sub-tree:

machdep.p4tcc.throttling.target: CPU Clock throttling state (0 = lowest, 7 highest)
machdep.p4tcc.throttling.current: current CPU throttling state
machdep.p4tcc.throttling.available: list of CPU Clock throttling states

machdep.p4tcc.throttling.target = 2
machdep.p4tcc.throttling.current = 2
machdep.p4tcc.throttling.available = 7 6 5 4 3 2

Adapted from OpenBSD/FreeBSD.
2007-03-15 00:03:24 +00:00
uwe b602f9a09b Use .L* for local labels. Misc cosmetic.
Same object code is generated.
2007-03-15 00:00:38 +00:00
ad 06aeb1d344 - Remove the LWP counters. The race between park/unpark rarely occurs
so it's not worth counting.

- lwp_wakeup: set LW_UNPARKED on the target. Ensures that _lwp_park will
  always be awoken even if another system call eats the wakeup, e.g. as a
  result of an intervening signal. To deal with this correctly for other
  system calls will require a different approach.

- _lwp_unpark, _lwp_unpark_all: use setrunnable if the LWP is not parked
  on the same sync queue: (1) simplifies the code a bit as there no point
  doing anything special for this case (2) makes it possible for p_smutex
  to be replaced by p_mutex and (3) restores the guarantee that the 'hint'
  argument really is just a hint.
2007-03-14 23:58:24 +00:00
ad bfa3094e84 Cosmetic changes. 2007-03-14 23:34:48 +00:00
ad 0c61b6a65c - pthread__park: always check for cancellation.
- pthread__unpark: cosmetic changes.
2007-03-14 23:33:42 +00:00