The NetBSD Project

CVS log for src/sys/kern/kern_clock.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.151 / (download) - annotate - [select for diffs], Sat Sep 2 17:44:59 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.150: +2 -5 lines
Diff to previous 1.150 (colored) to selected 1.137 (colored)

heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h.

Less error-prone this way, and the callers are less cluttered.

Revision 1.148.4.1 / (download) - annotate - [select for diffs], Fri Aug 11 14:35:25 2023 UTC (7 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.148: +6 -4 lines
Diff to previous 1.148 (colored) next main 1.149 (colored) to selected 1.137 (colored)

Pull up following revision(s) (requested by riastradh in ticket #319):

	sys/dev/pci/ubsec.c: revision 1.64
	sys/dev/pci/hifn7751.c: revision 1.82
	lib/libc/gen/getentropy.3: revision 1.5
	lib/libc/gen/getentropy.3: revision 1.6
	share/man/man4/rnd.4: revision 1.41
	lib/libc/sys/getrandom.2: revision 1.2
	lib/libc/sys/getrandom.2: revision 1.3
	share/man/man5/rc.conf.5: revision 1.193
	share/man/man7/entropy.7: revision 1.5
	share/man/man7/entropy.7: revision 1.6
	share/man/man7/entropy.7: revision 1.7
	share/man/man7/entropy.7: revision 1.8
	etc/security: revision 1.130
	share/man/man7/entropy.7: revision 1.9
	etc/security: revision 1.131
	sys/crypto/cprng_fast/cprng_fast.c: revision 1.19
	sys/sys/rndio.h: revision 1.3
	tests/lib/libc/sys/t_getrandom.c: revision 1.5
	etc/defaults/rc.conf: revision 1.164
	etc/defaults/rc.conf: revision 1.165
	sys/sys/rndsource.h: revision 1.10
	sys/kern/kern_entropy.c: revision 1.62
	sys/kern/kern_entropy.c: revision 1.63
	sys/kern/kern_entropy.c: revision 1.64
	sys/kern/subr_cprng.c: revision 1.44
	sys/kern/kern_entropy.c: revision 1.65
	sys/kern/kern_clock.c: revision 1.149
	sys/dev/pci/viornd.c: revision 1.22
	share/man/man9/rnd.9: revision 1.32
	sys/kern/subr_prf.c: revision 1.202
	sys/sys/rndsource.h: revision 1.8
	sys/sys/rndsource.h: revision 1.9
	share/man/man7/entropy.7: revision 1.10

1. Reinstate netbsd<=9 entropy estimator to unblock /dev/random, in
   parallel with assessment of only confident entropy sources (seed,
   HWRNG) for security warnings like sshd keys in motd and daily
   insecurity report.

2. Make multiuser boot wait for first /dev/random output soon after
   loading a seed and configuring rndctl, so that getentropy(3) meets
   its contract starting early at boot without introducing blocking
   paths that could cause hangs in init(8) or single-user mode.
   Operators can choose to disable this wait in rc.conf.

3. Fix some bugs left over from reducing the global entropy lock from
   a spin lock at IPL_VM to an adaptive lock at IPL_SOFTSERIAL.

4. Update man pages.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Jul 7 12:34:50 2023 UTC (8 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.149: +11 -2 lines
Diff to previous 1.149 (colored) to selected 1.137 (colored)

heartbeat(9): New mechanism to check progress of kernel.

This uses hard interrupts to check progress of low-priority soft
interrupts, and one CPU to check progress of another CPU.

If no progress has been made after a configurable number of seconds
(kern.heartbeat.max_period, default 15), then the system panics --
preferably on the CPU that is stuck so we get a stack trace in dmesg
of where it was stuck, but if the stuckness was detected by another
CPU and the stuck CPU doesn't acknowledge the request to panic within
one second, the detecting CPU panics instead.

This doesn't supplant hardware watchdog timers.  It is possible for
hard interrupts to be stuck on all CPUs for some reason too; in that
case heartbeat(9) has no opportunity to complete.

Downside: heartbeat(9) relies on hardclock to run at a reasonably
consistent rate, which might cause trouble for the glorious tickless
future.  However, it could be adapted to take a parameter for an
approximate number of units that have elapsed since the last call on
the current CPU, rather than treating that as a constant 1.

XXX kernel revbump -- changes struct cpu_info layout

Revision 1.149 / (download) - annotate - [select for diffs], Fri Jun 30 21:42:05 2023 UTC (8 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.148: +6 -4 lines
Diff to previous 1.148 (colored) to selected 1.137 (colored)

entropy(9): Reintroduce netbsd<=9 time-delta estimator for unblocking.

The system will (in a subsequent change) by default block for this
condition before almost all of userland is running (including
/etc/rc.d/sshd key generation).  That way, a never-blocking
getentropy(3) API will never return any data without at least
best-effort entropy like netbsd<=9 did to applications except in
single-user mode (where you have to be careful about everything
anyway) or in the few processes that run before a seed can even be
loaded (where blocking indefinitely, e.g. when generating a stack
protector cookie in libc, could pose a severe availability problem
that can't be configured away, but where the security impact is low).

However, (in another subsequent change) we will continue to use
_only_ HWRNG driver estimates and seed estimates, and _not_
time-delta estimator, for _warning_ about security in motd, daily
security report, etc.  And if HWRNG/seed provides enough entropy
before time-delta estimator does, that will unblock /dev/random too.

The result is:

- Machines with HWRNG or seed won't warn about entropy and will
  essentially never block -- even on first boot without a seed, it
  will take only as long as the fastest HWRNG to unblock.

- Machines with neither HWRNG nor seed:
  . will warn about entropy, giving feedback about security;
    and
  . will avoid returning anything more predictable than netbsd<=9;
    but
  . won't block (much) longer than netbsd<=9 would (and won't block
    again after blocking once, except with kern.entropy.depletion=1 for
    testing).

  (The threshold for unblocking is now somewhat higher than before:
  512 samples that pass the time-delta estimator, rather than 80 as
  it used to be.)

  And, of course, adding a seed (or HWRNG) will prevent both warnings
  and blocking.

The mechanism is:

1. /dev/random will block until _either_

   (a) enough bits of entropy (256) from reliable sources have been
       added to the pool, _or_

   (b) enough samples have been added from any sources (512), passing
       the old time-delta entropy estimator, that the possible
       security benefit doesn't justify holding up availability any
       longer (`best effort'), except on systems with higher security
       requirements like securelevel=2 which can disable non-HWRNG,
       non-seed sources with rndctl_flags in rc.conf(5).

2. dmesg will report `entropy: ready' when 1(a) is satisfied, but if
   1(b) is satisfied first, it will report `entropy: best effort', so
   the concise log messages will reflect the timing and whether in
   any period of time any of the system might be relying on best
   effort entropy.

3. The sysctl knob kern.entropy.needed (and the ioctl RNDGETPOOLSTAT
   variable rndpoolstat_t::added) still reflects the number of bits
   of entropy from reliable sources, so we can still use this to
   suggest regenerating ssh keys.

   This matters on platforms that can only be reached, after flashing
   an installation image, by sshing in over a (private) network, like
   small network appliances or remote virtual machines without
   (interactive) serial consoles.  If we blocked indefinitely at boot
   when generating ssh keys, such platforms would be unusable.  This
   way, platforms are usable, but operators can still be advised at
   login time to regenerate keys as soon as they can actually load
   entropy onto the system, e.g. with rndctl(8) on a seed file copied
   from a local machine over the (private) network.

4. On machines without HWRNG, using a seed file still suppresses
   warnings for users who need more confident security.  But it is no
   longer necessary for availability.

This is a compromise between availability and security:

- The security mechanism of blocking indefinitely on machines without
  HWRNG hurts availability too much, as painful experience over the
  multiple years since I made the mistake of introducing it have
  shown.  (Sorry!)

- The other main alternative, not having a blocking path at all (as I
  pushed for, and as OpenBSD has done for a long time) could
  potentially reduce security vs netbsd<=9, and would run against the
  expectations set by many popular operating systems to the severe
  detriment of public perception of NetBSD security.

Even though we can't _confidently_ assess enough entropy from, e.g.,
sampling interrupt timings, this is the traditional behaviour that
most operating systems provide -- and the result here is a net
nondecrease in security over netbsd<=9, because all paths from the
entropy pool to userland now have at least as high a standard before
returning data as they did in netbsd<=9.

PR kern/55641
PR pkg/55847
PR kern/57185
https://mail-index.netbsd.org/current-users/2020/09/02/msg039470.html
https://mail-index.netbsd.org/current-users/2020/11/21/msg039931.html
https://mail-index.netbsd.org/current-users/2020/12/05/msg040019.html

XXX pullup-10

Revision 1.148 / (download) - annotate - [select for diffs], Sat Mar 19 14:34:47 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored) to selected 1.137 (colored)

kern: Delete kernel_ticks from kernel ABI.

Use getticks() instead.

Revision 1.147 / (download) - annotate - [select for diffs], Fri Mar 18 23:37:14 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored) to selected 1.137 (colored)

clockrnd(9): Use atomic_load_relaxed for struct clockrnd::needed.

This may be set concurrently by clockrnd_get, so let's match the
atomic_store_relaxed and avoid the appearance of data races.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Aug 14 21:17:11 2021 UTC (2 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored) to selected 1.137 (colored)

fix rumpkernel build failure

Revision 1.145 / (download) - annotate - [select for diffs], Sat Aug 14 17:51:20 2021 UTC (2 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.144: +9 -2 lines
Diff to previous 1.144 (colored) to selected 1.137 (colored)

Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU.

In the current implementation, locks are acquired at the entrance of the mcount
internal function, so the higher the number of cores, the more lock conflict
occurs, making profiling performance in a MULTIPROCESSOR environment unusable
and slow. Profiling buffers has been changed to be reserved for each CPU,
improving profiling performance in MP by several to several dozen times.

- Eliminated cpu_simple_lock in mcount internal function, using per-CPU buffers.
- Add ci_gmon member to struct cpu_info of each MP arch.
- Add kern.profiling.percpu node in sysctl tree.
- Add new -c <cpuid> option to kgmon(8) to specify the cpuid, like openbsd.
  For compatibility, if the -c option is not specified, the entire system can be
  operated as before, and the -p option will get the total profiling data for
  all CPUs.

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.142.2.1: +73 -2 lines
Diff to previous 1.142.2.1 (colored) next main 1.143 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.144 / (download) - annotate - [select for diffs], Sat Jan 16 02:20:00 2021 UTC (3 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.143: +73 -2 lines
Diff to previous 1.143 (colored) to selected 1.137 (colored)

entropy: Sample cycle counter or timecounter in hardclock.

Only do so when we're short on entropy, in order to minimize
performance impact.

The sampling should stay close to the time of the actual hardclock
timer interrupt, so that the oscillator driving it determines when we
sample the cycle counter or timecounter, which we hope is driven by
an independent oscillator.

If we used a callout, there might be many other influences -- such as
spin lock delays possibly synchronized with this core's cycle counter
-- that could get between the timer interrupt and the sample.

In the glorious tickless future, this should instead be wired up to
the timer interrupt handler, however that manifests in the future
tickless API.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:13 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored) to selected 1.137 (colored)

Sync w/ HEAD.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 5 18:17:01 2020 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored) to selected 1.137 (colored)

Refactor interval timers to make it possible to support types other than
the BSD/POSIX per-process timers:

- "struct ptimer" is split into "struct itimer" (common interval timer
  data) and "struct ptimer" (per-process timer data, which contains a
  "struct itimer").

- Introduce a new "struct itimer_ops" that supplies information about
  the specific kind of interval timer, including it's processing
  queue, the softint handle used to schedule processing, the function
  to call when the timer fires (which adds it to the queue), and an
  optional function to call when the CLOCK_REALTIME clock is changed by
  a call to clock_settime() or settimeofday().

- Rename some fuctions to clearly identify what they're operating on
  (ptimer vs itimer).

- Use kmem(9) to allocate ptimer-related structures, rather than having
  dedicated pools for them.

Welcome to NetBSD 9.99.77.

Revision 1.142 / (download) - annotate - [select for diffs], Sun Oct 11 18:39:09 2020 UTC (3 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.141: +14 -3 lines
Diff to previous 1.141 (colored) to selected 1.137 (colored)

Call cpu_initclocks() before registering the default timecounter,
in case it updates hz.  If hz changes, recalculate tick and tickadj.

Revision 1.141 / (download) - annotate - [select for diffs], Fri May 8 22:10:09 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.140: +9 -9 lines
Diff to previous 1.140 (colored) to selected 1.137 (colored)

Run Solaris cyclics from statclock() so dtrace isn't locked out by IPL_SCHED
(assuming the machine has a separate statclock() which almost all don't).

Revision 1.136.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:51 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.136.4.1: +13 -6 lines
Diff to previous 1.136.4.1 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored)

Merge changes from current as of 20200406

Revision 1.140 / (download) - annotate - [select for diffs], Thu Apr 2 16:29:30 2020 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.139: +11 -4 lines
Diff to previous 1.139 (colored) to selected 1.137 (colored)

Hide 'hardclock_ticks' behind a new getticks() function, and use relaxed
atomics internally. Only one caller is converted for now.

Discussed with riastradh@ and ad@.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Dec 1 15:34:46 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.138: +4 -4 lines
Diff to previous 1.138 (colored) to selected 1.137 (colored)

Fix false sharing problems with cpu_info.  Identified with tprof(8).
This was a very nice win in my tests on a 48 CPU box.

- Reorganise cpu_data slightly according to usage.
- Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc).
- On x86, put some items in their own cache lines according to usage, like
  the IPI bitmask and ci_want_resched.

Revision 1.136.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.136: +10 -53 lines
Diff to previous 1.136 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.136.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:41 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.136.2.1: +10 -10 lines
Diff to previous 1.136.2.1 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.138 / (download) - annotate - [select for diffs], Mon Sep 3 21:29:30 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.137: +10 -10 lines
Diff to previous 1.137 (colored)

C99 initializers for intr_timecounter.

No functional change.

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.136: +2 -45 lines
Diff to previous 1.136 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.137 / (download) - annotate - [selected], Thu Jul 12 10:46:48 2018 UTC (5 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.136: +2 -45 lines
Diff to previous 1.136 (colored)

Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

 * Removes "options PERFCTRS", the associated includes, and the associated
   ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
   good.

 * Removes the PMC code of ARM XSCALE.

 * Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

 * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
   definitions are put in sysarch.h.

 * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
   and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
   netbsd32 and rump.

 * Removes the pmc_evid_t and pmc_ctr_t types.

 * Removes all the associated man pages. The sets are marked as obsolete.

Revision 1.136 / (download) - annotate - [select for diffs], Sun Feb 4 17:31:51 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored) to selected 1.137 (colored)

Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're
not gonna go very far.

Revision 1.130.12.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.130.12.1: +42 -3 lines
Diff to previous 1.130.12.1 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored) to selected 1.137 (colored)

update from HEAD

Revision 1.131.14.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131.14.1: +3 -2 lines
Diff to previous 1.131.14.1 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.134.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:02 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.134: +3 -2 lines
Diff to previous 1.134 (colored) next main 1.135 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:47 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.134: +3 -2 lines
Diff to previous 1.134 (colored) next main 1.135 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Sun Feb 12 18:43:56 2017 UTC (7 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.134: +3 -2 lines
Diff to previous 1.134 (colored) to selected 1.137 (colored)

Add a KASSERT, otherwise it looks like a NULL deref; from Mootja.

Revision 1.131.14.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:21 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131: +41 -3 lines
Diff to previous 1.131 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Wed Apr 22 16:46:58 2015 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.133: +2 -3 lines
Diff to previous 1.133 (colored) to selected 1.137 (colored)

opt_ntp.h is no longer used in kern_clock.c

Revision 1.133 / (download) - annotate - [select for diffs], Wed Apr 22 16:43:11 2015 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.132: +4 -2 lines
Diff to previous 1.132 (colored) to selected 1.137 (colored)

_KERNEL_OPT wrap

Revision 1.132 / (download) - annotate - [select for diffs], Wed Apr 22 16:42:24 2015 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.131: +39 -2 lines
Diff to previous 1.131 (colored) to selected 1.137 (colored)

move clock sysctls from init_sysctl.c to kern_clock.c

Revision 1.130.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:50 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.130: +17 -2 lines
Diff to previous 1.130 (colored) to selected 1.137 (colored)

resync with head

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:42 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.130: +17 -2 lines
Diff to previous 1.130 (colored) next main 1.131 (colored) to selected 1.137 (colored)

sync with (a bit old) head

Revision 1.131 / (download) - annotate - [select for diffs], Sun Dec 2 01:05:16 2012 UTC (11 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb
Changes since 1.130: +17 -2 lines
Diff to previous 1.130 (colored) to selected 1.137 (colored)

adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().

Revision 1.130 / (download) - annotate - [select for diffs], Sun Oct 30 01:57:40 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.129: +2 -27 lines
Diff to previous 1.129 (colored) to selected 1.137 (colored)

Back out previous; this should not be done in statclock but when the
allocations change or getrusage(). Plus the += seems wrong, we cannot
keep adding to the stats.

Revision 1.129 / (download) - annotate - [select for diffs], Sat Oct 29 15:58:38 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.128: +27 -2 lines
Diff to previous 1.128 (colored) to selected 1.137 (colored)

PR/45539: Greg A. Woods: add support for getrusage(2) memory size statistics

Revision 1.128 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:33 2011 UTC (12 years, 8 months ago) by uebayasi
Branch: MAIN
Changes since 1.127: +2 -4 lines
Diff to previous 1.127 (colored) to selected 1.137 (colored)

These don't need uvm/uvm_extern.h.

Revision 1.126.16.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:13 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.126: +2 -14 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.137 (colored)

sync with head

Revision 1.126.20.1 / (download) - annotate - [select for diffs], Fri Jan 7 01:11:13 2011 UTC (13 years, 2 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.126: +13 -3 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.137 (colored)

Accumulate syscall, context switch, and other uvmexp counts in cpu_data
and merge into uvmexp.  (smaller less impact change than the one for HEAD).

Revision 1.127 / (download) - annotate - [select for diffs], Mon Dec 20 00:25:46 2010 UTC (13 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.126: +2 -14 lines
Diff to previous 1.126 (colored) to selected 1.137 (colored)

Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.121.2.1: +7 -11 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.117.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.117.6.3: +1 -3 lines
Diff to previous 1.117.6.3 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.125: +3 -5 lines
Diff to previous 1.125 (colored) next main 1.126 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.122.2.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (15 years, 5 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.122.2.2: +3 -5 lines
Diff to previous 1.122.2.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Oct 5 21:57:20 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: rmind-uvmplock, matt-nb5-pq3
Changes since 1.125: +3 -5 lines
Diff to previous 1.125 (colored) to selected 1.137 (colored)

hardclock() itself doesn't schedule callout softintrs any more,
so update comment - less is more.

Revision 1.117.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:52 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.117.6.2: +1 -1 lines
Diff to previous 1.117.6.2 (colored) to branchpoint 1.117 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.122.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:41 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.122.2.1: +3 -3 lines
Diff to previous 1.122.2.1 (colored) to branchpoint 1.122 (colored) to selected 1.137 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:11 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) next main 1.125 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Jul 2 19:38:37 2008 UTC (15 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored) to selected 1.137 (colored)

Remove locking of p_stmutex from sched_pstats(), protect l_pctcpu with p_lock,
and make l_cpticks lock-less.  Should fix PR/38296.

Reviewed (slightly different version) by <ad>.

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.122: +5 -7 lines
Diff to previous 1.122 (colored) to selected 1.137 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.119.2.1: +5 -7 lines
Diff to previous 1.119.2.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored) to selected 1.137 (colored)

sync with head

Revision 1.117.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:07 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.117.6.1: +10 -37 lines
Diff to previous 1.117.6.1 (colored) to branchpoint 1.117 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jun 1 21:24:15 2008 UTC (15 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.123: +4 -2 lines
Diff to previous 1.123 (colored) to selected 1.137 (colored)

Make trap counters per-cpu, like syscalls.

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.122: +3 -7 lines
Diff to previous 1.122 (colored) to selected 1.137 (colored)

Reduce ifdefs due to MULTIPROCESSOR slightly.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:07 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.119: +11 -36 lines
Diff to previous 1.119 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:24 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.121: +2 -9 lines
Diff to previous 1.121 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:02 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.121: +2 -9 lines
Diff to previous 1.121 (colored) to selected 1.137 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.121 / (download) - annotate - [select for diffs], Tue Apr 22 11:45:28 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.120: +7 -12 lines
Diff to previous 1.120 (colored) to selected 1.137 (colored)

Implement MP callouts as discussed on tech-kern. The CPU binding code is
disabled for the moment until we figure out what we want to do with CPUs
being offlined.

Revision 1.120 / (download) - annotate - [select for diffs], Mon Apr 21 00:13:46 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.119: +6 -19 lines
Diff to previous 1.119 (colored) to selected 1.137 (colored)

timer fixes for PR 37093:

- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().

Revision 1.117.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:00 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.117: +15 -3 lines
Diff to previous 1.117 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.117: +15 -3 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.110.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:58 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.110.2.2: +15 -1041 lines
Diff to previous 1.110.2.2 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored) to selected 1.137 (colored)

sync with HEAD

Revision 1.94.4.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.7: +15 -3 lines
Diff to previous 1.94.4.7 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.119 / (download) - annotate - [select for diffs], Tue Mar 11 02:26:47 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.118: +4 -4 lines
Diff to previous 1.118 (colored) to selected 1.137 (colored)

Add casts to avoid potential compiler warnings.

Revision 1.118 / (download) - annotate - [select for diffs], Tue Mar 11 02:24:43 2008 UTC (16 years ago) by ad
Branch: MAIN
Changes since 1.117: +15 -3 lines
Diff to previous 1.117 (colored) to selected 1.137 (colored)

Make context switch + syscall counters optionally per-CPU and accumulate
in schedclock() at "about 16 hz".

Revision 1.113.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.113.4.2: +2 -1039 lines
Diff to previous 1.113.4.2 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.114.6.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:38 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.114.6.2: +0 -1038 lines
Diff to previous 1.114.6.2 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.94.4.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:01 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.6: +2 -988 lines
Diff to previous 1.94.4.6 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head

Revision 1.117 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:11 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.116: +2 -1040 lines
Diff to previous 1.116 (colored) to selected 1.137 (colored)

Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:59 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.110.2.1: +60 -8 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored) to selected 1.137 (colored)

sync with HEAD

Revision 1.114.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:31 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.114.6.1: +2 -1 lines
Diff to previous 1.114.6.1 (colored) to branchpoint 1.114 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jan 7 10:28:07 2008 UTC (16 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.115: +4 -3 lines
Diff to previous 1.115 (colored) to selected 1.137 (colored)

Actually return the computed uptime in microuptime().  Fixes many
wierd timing issues on non-timecounter ports (tested on sbmips, and
omap ARM by Marty Fouts).

Also move the microtime() inside the splclock() block in the same
function - it may be possible for the "time" variable to be updated
after the call to microtime() but before we use it to calculate the
offset from mono_time.

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:46 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.114: +59 -8 lines
Diff to previous 1.114 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.113.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:56 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.113.4.1: +59 -8 lines
Diff to previous 1.113.4.1 (colored) to branchpoint 1.113 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:07 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.114: +59 -8 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Dec 22 00:34:38 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.114: +59 -8 lines
Diff to previous 1.114 (colored) to selected 1.137 (colored)

provide binuptime etc for !__HAVE_TIMECOUNTER.

Revision 1.113.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:35 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.113: +20 -21 lines
Diff to previous 1.113 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.94.4.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:39 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.5: +20 -21 lines
Diff to previous 1.94.4.5 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:56 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.113: +20 -21 lines
Diff to previous 1.113 (colored) next main 1.114 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:30 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.110: +23 -71 lines
Diff to previous 1.110 (colored) to selected 1.137 (colored)

sync with HEAD

Revision 1.109.6.3 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:25 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.109.6.2: +20 -21 lines
Diff to previous 1.109.6.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.114 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:40 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.113: +20 -21 lines
Diff to previous 1.113 (colored) to selected 1.137 (colored)

Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.

Revision 1.106.6.10 / (download) - annotate - [select for diffs], Mon Nov 5 15:44:45 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.9: +16 -17 lines
Diff to previous 1.106.6.9 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.137 (colored)

Drive schedclock from hardclock, instead of from statclock.

Revision 1.106.6.9 / (download) - annotate - [select for diffs], Thu Nov 1 21:58:15 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.8: +6 -6 lines
Diff to previous 1.106.6.8 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

- Fix interactivity problems under high load. Beacuse soft interrupts
  are being stacked on top of regular LWPs, more often than not aston()
  was being called on a soft interrupt thread instead of a user thread,
  meaning that preemption was not happening on EOI.

- Don't use bool in a couple of data structures. Sub-word writes are not
  always atomic and may clobber other fields in the containing word.

- For SCHED_4BSD, make p_estcpu per thread (l_estcpu). Rework how the
  dynamic priority level is calculated - it's much better behaved now.

- Kill the l_usrpri/l_priority split now that priorities are no longer
  directly assigned by tsleep(). There are three fields describing LWP
  priority:

        l_priority: Dynamic priority calculated by the scheduler.
                This does not change for kernel/realtime threads,
                and always stays within the correct band. Eg for
                timeshared LWPs it never moves out of the user
                priority range. This is basically what l_usrpri
                was before.

        l_inheritedprio: Lent to the LWP due to priority inheritance
                (turnstiles).

        l_kpriority: A boolean value set true the first time an LWP
                sleeps within the kernel. This indicates that the LWP
                should get a priority boost as compensation for blocking.
                lwp_eprio() now does the equivalent of sched_kpri() if
                the flag is set. The flag is cleared in userret().

- Keep track of scheduling class (OTHER, FIFO, RR) in struct lwp, and use
  this to make decisions in a few places where we previously tested for a
  kernel thread.

- Partially fix itimers and usr/sys/intr time accounting in the presence
  of software interrupts.

- Use kthread_create() to create idle LWPs. Move priority definitions
  from the various modules into sys/param.h.

- newlwp -> lwp_create

Revision 1.94.4.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:20 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.4: +5 -52 lines
Diff to previous 1.94.4.4 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.106.6.8 / (download) - annotate - [select for diffs], Thu Oct 18 15:47:32 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.7: +3 -3 lines
Diff to previous 1.106.6.7 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Update for soft interrupt changes. See kern_softint.c 1.1.2.17 for details.

Revision 1.106.6.7 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:18 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.6: +2 -3 lines
Diff to previous 1.106.6.6 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.106.6.6 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:23 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.5: +5 -52 lines
Diff to previous 1.106.6.5 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:41 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.110: +5 -52 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.109.6.2 / (download) - annotate - [select for diffs], Thu Oct 4 15:44:51 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.109.6.1: +5 -52 lines
Diff to previous 1.109.6.1 (colored) to branchpoint 1.109 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Oct 4 12:55:48 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.112: +2 -45 lines
Diff to previous 1.112 (colored) to selected 1.137 (colored)

G/C the HIGHBALL stuff.

Revision 1.112 / (download) - annotate - [select for diffs], Wed Oct 3 14:49:24 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.137 (colored)

Make kaputt code compile.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Oct 3 11:05:58 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.110: +5 -9 lines
Diff to previous 1.110 (colored) to selected 1.137 (colored)

Fix a dodgy bit of code in the PERFCTRS case.

Revision 1.94.4.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:43 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.3: +54 -196 lines
Diff to previous 1.94.4.3 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.106.6.5 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:28 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.4: +2 -159 lines
Diff to previous 1.106.6.4 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:28 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.109: +2 -159 lines
Diff to previous 1.109 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:06 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.109: +2 -159 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.110 / (download) - annotate - [select for diffs], Thu Aug 9 07:36:18 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.109: +2 -159 lines
Diff to previous 1.109 (colored) to selected 1.137 (colored)

Shuffle routines which just roll values around from kern_clock.c
and kern_time.c to subr_time.c.

Revision 1.106.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:42 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.106: +54 -39 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:51 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.108: +7 -16 lines
Diff to previous 1.108 (colored) to selected 1.137 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.106.6.4 / (download) - annotate - [select for diffs], Sun Jul 1 21:43:41 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.3: +3 -11 lines
Diff to previous 1.106.6.3 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

- Adapt to callout API change.
- Add a counter to track how often soft interrupts sleep.

Revision 1.106.6.3 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:19 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.2: +8 -8 lines
Diff to previous 1.106.6.2 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.106.6.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:16 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.106.6.1: +49 -25 lines
Diff to previous 1.106.6.1 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Thu May 17 14:51:38 2007 UTC (16 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.107: +43 -23 lines
Diff to previous 1.107 (colored) to selected 1.137 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.106.2.7 / (download) - annotate - [select for diffs], Thu May 17 13:41:44 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.6: +8 -4 lines
Diff to previous 1.106.2.6 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Sun May 13 14:43:52 2007 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.106: +8 -4 lines
Diff to previous 1.106 (colored) to selected 1.137 (colored)

Instead of the #define versions of tc_getfrequency() and nanouptime(), use
the function ones in kern_kern_clock.c (adding tc_getfrequency).
Adjust includes so this builds.

Revision 1.106.2.6 / (download) - annotate - [select for diffs], Sat Apr 21 15:50:14 2007 UTC (16 years, 11 months ago) by ad
Branch: yamt-idlelwp
Changes since 1.106.2.5: +3 -3 lines
Diff to previous 1.106.2.5 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

Some changes mainly for top/ps:

- Add an optional name field to struct lwp.
- Count the total number of context switches + involuntary,
  not voluntary + involuntary.
- Mark the idle threads as LSIDL when not running, otherwise
  they show up funny in a top(1) that shows threads.
- Make pctcpu and cpticks per-LWP attributes.
- Add to kinfo_lwp: cpticks, pctcpu, pid, name.

Revision 1.106.6.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:10:20 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored) to selected 1.137 (colored)

GC the simplelock/spinlock debugging stuff.

Revision 1.106.2.5 / (download) - annotate - [select for diffs], Tue Mar 20 11:26:51 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.4: +14 -6 lines
Diff to previous 1.106.2.4 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

- revive schedclock and rename sched_clock to sched_schedclock.
  (yes, a poor name...)
  make schedclock check if curlwp is idle.
- statclock: in the case of schedhz==0, call schedclock periodically,
  regardless of idleness.
- fix a comment.  (don't assume schedhz==0.)

Revision 1.106.2.4 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:19 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.3: +1 -1 lines
Diff to previous 1.106.2.3 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.94.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:04 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.2: +46 -48 lines
Diff to previous 1.94.4.2 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Fri Feb 23 12:00:29 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.2: +3 -9 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

remove an SCHED_4BSD #ifdef (schedclock).  from Daniel Sieger.
discussed on tech-kern@.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Tue Feb 20 21:48:44 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.106.2.1: +11 -6 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) to selected 1.137 (colored)

General Common Scheduler Framework (CSF) patch import. Huge thanks for
Daniel Sieger <dsieger at TechFak.Uni-Bielefeld de> for this work.

Short abstract: Split the dispatcher from the scheduler in order to
make the scheduler more modular. Introduce initial API for other
schedulers' implementations.

Discussed in tech-kern@
OK: yamt@, ad@

Note: further work will go soon.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 10:30:53 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106: +34 -21 lines
Diff to previous 1.106 (colored) to selected 1.137 (colored)

- separate context switching and thread scheduling.
- introduce idle lwp.
- change some related MD/MI interfaces and implement i386 version.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Feb 16 02:53:43 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans
Changes since 1.105: +9 -32 lines
Diff to previous 1.105 (colored) to selected 1.137 (colored)

Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.104: +41 -20 lines
Diff to previous 1.104 (colored) to selected 1.137 (colored)

Merge newlock2 to head.

Revision 1.102.2.7 / (download) - annotate - [select for diffs], Mon Feb 5 16:44:40 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.102.2.6: +10 -10 lines
Diff to previous 1.102.2.6 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.137 (colored)

IPL_STATCLOCK needs to be >= IPL_CLOCK, so assume that proc::p_stmutex is
always a spinlock.

Revision 1.102.2.6 / (download) - annotate - [select for diffs], Tue Jan 16 07:10:07 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.102.2.5: +11 -5 lines
Diff to previous 1.102.2.5 (colored) to branchpoint 1.102 (colored) to selected 1.137 (colored)

Fix locking botches.

Revision 1.102.2.5 / (download) - annotate - [select for diffs], Thu Jan 11 22:22:59 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.102.2.4: +3 -3 lines
Diff to previous 1.102.2.4 (colored) to branchpoint 1.102 (colored) to selected 1.137 (colored)

Checkpoint work in progress.

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94.4.1: +6 -3 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:43 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.102.2.3: +22 -16 lines
Diff to previous 1.102.2.3 (colored) to branchpoint 1.102 (colored) to selected 1.137 (colored)

Checkpoint work in progress.

Revision 1.102.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.102.4.1: +4 -3 lines
Diff to previous 1.102.4.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.102.2.2: +3 -2 lines
Diff to previous 1.102.2.2 (colored) to branchpoint 1.102 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:35 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.102.2.1: +15 -11 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) to selected 1.137 (colored)

Checkpoint work in progress.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.103: +4 -3 lines
Diff to previous 1.103 (colored) to selected 1.137 (colored)

remove some __unused from function parameters.

Revision 1.102.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.137 (colored)

sync with head

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Oct 21 14:03:42 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.102: +14 -9 lines
Diff to previous 1.102 (colored) to selected 1.137 (colored)

Update for addupc_intr() change.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.137 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.96: +219 -21 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.137 (colored)

sync with head

Revision 1.96.8.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.96.8.2: +5 -3 lines
Diff to previous 1.96.8.2 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Sep 2 06:21:32 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.101: +5 -3 lines
Diff to previous 1.101 (colored) to selected 1.137 (colored)

Add missing initializers

Revision 1.96.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:56 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.96.8.1: +209 -15 lines
Diff to previous 1.96.8.1 (colored) to branchpoint 1.96 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.94: +225 -16 lines
Diff to previous 1.94 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:15 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.98: +209 -15 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jun 9 22:47:56 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.100: +2 -3 lines
Diff to previous 1.100 (colored) to selected 1.137 (colored)

re-order initialization sequence to have real counters available during autoconfig

Revision 1.100 / (download) - annotate - [select for diffs], Thu Jun 8 17:23:11 2006 UTC (17 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored) to selected 1.137 (colored)

make the public declaration of "hardclock_ticks" signed again; other
code (kernel timeout/callout) does comparisions with it

Revision 1.99 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:39 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.98: +211 -16 lines
Diff to previous 1.98 (colored) to selected 1.137 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.96.6.5 / (download) - annotate - [select for diffs], Sat Jun 3 10:42:31 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.96.6.4: +28 -3 lines
Diff to previous 1.96.6.4 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.137 (colored)

implement clock interrupt counter

Revision 1.96.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.96: +10 -8 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.137 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.96.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.96: +10 -8 lines
Diff to previous 1.96 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.96.6.4 / (download) - annotate - [select for diffs], Mon Apr 24 08:37:35 2006 UTC (17 years, 11 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.96.6.3: +12 -2 lines
Diff to previous 1.96.6.3 (colored) to branchpoint 1.96 (colored) to selected 1.137 (colored)

provide nanouptime compatibility

Revision 1.96.6.3 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.96.6.2: +10 -8 lines
Diff to previous 1.96.6.2 (colored) to branchpoint 1.96 (colored) to selected 1.137 (colored)

Sync with head.

Revision 1.96.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 05:13:59 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.96: +10 -8 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.137 (colored)

sync with head.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Apr 15 02:12:49 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.97: +5 -3 lines
Diff to previous 1.97 (colored) to selected 1.137 (colored)

Make this compile again.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Apr 15 00:34:42 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.96: +9 -9 lines
Diff to previous 1.96 (colored) to selected 1.137 (colored)

Coverity CID 1050, 1051: Correct NULL guards.

Revision 1.96.6.2 / (download) - annotate - [select for diffs], Tue Feb 28 20:59:53 2006 UTC (18 years, 1 month ago) by kardel
Branch: simonb-timecounters
Changes since 1.96.6.1: +3 -4 lines
Diff to previous 1.96.6.1 (colored) to branchpoint 1.96 (colored) to selected 1.137 (colored)

increment hardclock_ticks always

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 13:49:07 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.96: +175 -14 lines
Diff to previous 1.96 (colored) to selected 1.137 (colored)

Adapt for timecounter changes.

Add FreeBSD's "tvtohz()" function to avoid the bogus "splfoo(), add
time, call hzto() which subtracts time" sequences, and add new tstohz()
function that does similar for timespecs.

Add compatibility routines so ports not yet converted to timecounters
can use the timecounter get*time() calls.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored) to selected 1.137 (colored)

merge ktrace-lwp.

Revision 1.86.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.86.2.4: +15 -2 lines
Diff to previous 1.86.2.4 (colored) next main 1.87 (colored) to selected 1.137 (colored)

Sync with HEAD. Here we go again...

Revision 1.95 / (download) - annotate - [select for diffs], Mon Sep 12 16:21:31 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.94: +15 -2 lines
Diff to previous 1.94 (colored) to selected 1.137 (colored)

Introduced nanotime() which is going to be used by some fs code yet to
be committed. This should really be an MD routine and microtime should
be implemented from it, not the opposite (which is what we have now).

Revision 1.92.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:23 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.92: +12 -10 lines
Diff to previous 1.92 (colored) next main 1.93 (colored) to selected 1.137 (colored)

sync with -current

Revision 1.92.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.92: +12 -10 lines
Diff to previous 1.92 (colored) next main 1.93 (colored) to selected 1.137 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.86.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:58 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.86.2.3: +12 -10 lines
Diff to previous 1.86.2.3 (colored) to selected 1.137 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.94 / (download) - annotate - [select for diffs], Wed Mar 2 11:05:34 2005 UTC (19 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.93: +5 -3 lines
Diff to previous 1.93 (colored) to selected 1.137 (colored)

Copyright maintenance.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.92: +9 -9 lines
Diff to previous 1.92 (colored) to selected 1.137 (colored)

nuke trailing whitespace

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.86.2.2: +2 -2 lines
Diff to previous 1.86.2.2 (colored) to selected 1.137 (colored)

Fix the sync with head I botched.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.86.2.1: +4 -2 lines
Diff to previous 1.86.2.1 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu Sep 16 03:23:27 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.137 (colored)

Pullup rev 1.92 (requested by tls in ticket #847)

Add 50Hz support -- this will allow 'options NTP' to work on the Xen port,
once the Xen port's timer interrupts are made somewhat more sane

Revision 1.92 / (download) - annotate - [select for diffs], Wed Sep 15 04:56:14 2004 UTC (19 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.91: +4 -2 lines
Diff to previous 1.91 (colored) to selected 1.137 (colored)

Add 50Hz support -- this will allow 'options NTP' to work on the Xen port,
once the Xen port's timer interrupts are made somewhat more sane (it "works"
now, but keeps worse time than without the option, ouch)

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:43 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.86: +26 -31 lines
Diff to previous 1.86 (colored) to selected 1.137 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Thu Jul 1 12:36:57 2004 UTC (19 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.90: +13 -4 lines
Diff to previous 1.90 (colored) to selected 1.137 (colored)

statclock: don't assume hz==100 when determining frequency to call schedclock.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:22 2004 UTC (20 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.89: +5 -5 lines
Diff to previous 1.89 (colored) to selected 1.137 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 23 05:01:19 2004 UTC (20 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.88: +11 -2 lines
Diff to previous 1.88 (colored) to selected 1.137 (colored)

Fix NTP PPSAPI support (enabled with "options PPS_SYNC"):

From PR kern/13702 from Charles Carvalho.  Tested on alpha and
i386 with a Laipac TF10 PPS-capable GPS.  The com.c change was
copied wholesale from Charles' z8530tty.c patch.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.87: +2 -21 lines
Diff to previous 1.87 (colored) to selected 1.137 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Wed Oct 22 06:06:50 2003 UTC (20 years, 5 months ago) by jmc
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.137 (colored)

Pullup via patch  (requested by he in ticket #1530)


        Introduce a new INVOKING status for callouts, and use it to close
        a race condition in the TCP code.  Fixes PR#20390.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:42 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.86: +3 -7 lines
Diff to previous 1.86 (colored) to selected 1.137 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:04 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.85: +3 -2 lines
Diff to previous 1.85 (colored) to selected 1.137 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jun 12 14:44:36 2003 UTC (20 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.84: +2 -3 lines
Diff to previous 1.84 (colored) to selected 1.137 (colored)

nuke unnecessary #include <sys/dkstat.h>

Revision 1.84 / (download) - annotate - [select for diffs], Tue Feb 4 01:21:04 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.83: +6 -390 lines
Diff to previous 1.83 (colored) to selected 1.137 (colored)

New callout implementation.  This is based on callwheel implementation
done by Artur Grabowski and Thomas Nordin for OpenBSD, which is more
efficient in several ways than the callwheel implementation that it is
replacing.  It has been adapted to our pre-existing callout API, and
also provides the slightly more efficient (and much more intuitive)
API (adapted to the callout_*() naming scheme) that the OpenBSD version
provides.

Among other things, this shaves a bunch of cycles off rescheduling-in-
the-future a callout which is already scheduled, which the common case
for TCP timers (notably REXMT and KEEP).

The API has been simplified a bit, as well.  The (very confusing to
a good many people) "ACTIVE" state for callouts has gone away.  There
is now only "PENDING" (scheduled to fire in the future) and "EXPIRED"
(has fired, and the function called).

Kernel version bump not done; we'll ride the 1.6N bump that happened
with the malloc(9) change.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jan 27 22:38:24 2003 UTC (21 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.82: +7 -6 lines
Diff to previous 1.82 (colored) to selected 1.137 (colored)

There's a locking order issue with the scheduler and the callwheel locks
as ltsleep() may call callout_reset() with the scheduler lock held.
So, prevent interrupts that may take the scheduler lock while holding
the callwheel lock.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:24 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +23 -19 lines
Diff to previous 1.81 (colored) to selected 1.137 (colored)

Merge the nathanw_sa branch.

Revision 1.74.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:35 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.74.2.10: +4 -4 lines
Diff to previous 1.74.2.10 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.137 (colored)

Catch up to -current

Revision 1.81 / (download) - annotate - [select for diffs], Sat Nov 2 07:25:19 2002 UTC (21 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.137 (colored)

/*CONTCOND*/ while (0)'ed macros

Revision 1.74.2.10 / (download) - annotate - [select for diffs], Thu Oct 3 23:49:31 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.9: +11 -11 lines
Diff to previous 1.74.2.9 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Implement CLOCK_VIRTUAL and CLOCK_PROF support for POSIX timers. Factor
out some common code between POSIX timers and BSD timers along the way.

Revision 1.75.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:43 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.75.2.3: +53 -5 lines
Diff to previous 1.75.2.3 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.137 (colored)

sync kqueue branch with HEAD

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:06 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.79: +53 -5 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.137 (colored)

catch up with -current.

Revision 1.74.2.9 / (download) - annotate - [select for diffs], Tue Aug 13 02:20:04 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.8: +53 -5 lines
Diff to previous 1.74.2.8 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Catch up to -current.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Aug 7 05:16:22 2002 UTC (21 years, 7 months ago) by briggs
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.79: +53 -5 lines
Diff to previous 1.79 (colored) to selected 1.137 (colored)

Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.

Revision 1.74.2.8 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:13 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.7: +2 -3 lines
Diff to previous 1.74.2.7 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.74.2.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:39 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.6: +4 -4 lines
Diff to previous 1.74.2.6 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:25 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.75.2.2: +2 -3 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored) to selected 1.137 (colored)

catch up with -current on kqueue branch

Revision 1.74.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:50 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.5: +2 -3 lines
Diff to previous 1.74.2.5 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.79 / (download) - annotate - [select for diffs], Sun Mar 17 11:10:43 2002 UTC (22 years ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored) to selected 1.137 (colored)

We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore.

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:45 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.75.2.1: +5 -1 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) to selected 1.137 (colored)

Sync kqueue branch with -current.

Revision 1.74.2.5 / (download) - annotate - [select for diffs], Sat Nov 17 01:10:16 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.4: +9 -8 lines
Diff to previous 1.74.2.4 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Implement POSIX realtime timers, and reimplement getitimer() and setitimer()
in terms of them.

Revision 1.74.2.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:33 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.3: +4 -1 lines
Diff to previous 1.74.2.3 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Catch up to -current.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:45 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.77: +4 -1 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.137 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:06 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, ifpoll-base
Changes since 1.77: +4 -1 lines
Diff to previous 1.77 (colored) to selected 1.137 (colored)

add RCSIDs

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:48 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.75: +105 -44 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.137 (colored)

Catch up with -current.

Revision 1.74.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:24 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.2: +105 -44 lines
Diff to previous 1.74.2.2 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Catch up to -current.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Sep 13 05:22:17 2001 UTC (22 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored) to selected 1.137 (colored)

Defopt CALLWHEEL_STATS.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:16 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.75: +104 -44 lines
Diff to previous 1.75 (colored) to selected 1.137 (colored)

Update the kqueue branch to HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Sep 11 04:32:20 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +104 -44 lines
Diff to previous 1.75 (colored) to selected 1.137 (colored)

Optimization suggested by Bill Sommerfeld:  Keep a hint as to the
"earliest" firing callout in a bucket.  This allows us to skip
the scan up the bucket if no callouts are due in the bucket.

A cheap O(1) hint update is done at callout insertion (if new callout
is earlier than hint) and removal (is bucket empty).  A thorough
refresh of the hint is done when the bucket is traversed.

This doesn't matter much on machines with small values of hz
(e.g. i386), but on systems with large values of hz (e.g. Alpha),
it has a definite positive effect.

Also, keep the callwheel stats in evcnts, so that you can view them
with "vmstat -e".

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:45 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.74.2.1: +2 -1 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored) to selected 1.137 (colored)

Catch up to -current.

Revision 1.75 / (download) - annotate - [select for diffs], Sun May 6 13:46:34 2001 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored) to selected 1.137 (colored)

Declare schedhz.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:38 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.74: +13 -9 lines
Diff to previous 1.74 (colored) to selected 1.137 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.50.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:45 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.50.2.3: +4 -1 lines
Diff to previous 1.50.2.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.137 (colored)

Sync with HEAD.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:43 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.50.2.2: +19 -3 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored) to selected 1.137 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jan 17 18:21:41 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.73: +4 -1 lines
Diff to previous 1.73 (colored) to selected 1.137 (colored)

Explicitly include <machine/intr.h> if __HAVE_GENERIC_SOFT_INTERRUPTS.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jan 15 20:19:59 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.72: +20 -4 lines
Diff to previous 1.72 (colored) to selected 1.137 (colored)

Make softclock a generic soft interrupt of the API is available,
adding the requisite void * argument to softclock().

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:19 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.50.2.1: +7 -4 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) to selected 1.137 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.72 / (download) - annotate - [select for diffs], Sun Dec 10 19:29:31 2000 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.71: +7 -4 lines
Diff to previous 1.71 (colored) to selected 1.137 (colored)

Introduce PROC_PC(), which is used to get a process's user PC.  If this is
defined, call addupc_intr() directly from statclock() in the system time case,
using the same P_OWEUPC path if the copyin/copyout fails.
Use this in i386 to remove profiling code from the normal userret() path.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:57 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.50: +539 -216 lines
Diff to previous 1.50 (colored) to selected 1.137 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.71 / (download) - annotate - [select for diffs], Sat Aug 26 04:01:16 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) to selected 1.137 (colored)

On second thought.. pass cpu_info * to roundrobin() explicitly.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Aug 26 03:34:37 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.69: +30 -23 lines
Diff to previous 1.69 (colored) to selected 1.137 (colored)

More MP clock/scheduler changes:
 - Periodically invoke roundrobin() from hardclock() on all cpu's rather
than from a timer callout; this allows time-slicing on non-primary cpu's.
 - Make pscnt per-cpu.
 - Notice psdiv changes on each cpu, and adjust pscnt at that point.
Also, invoke setstatclockrate() from the clock interrupt when each cpu
notices the divisor change, rather than when starting/stopping the
profiling clock.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Aug 22 17:28:28 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored) to selected 1.137 (colored)

Define the MI parts of the "big kernel lock" perimeter.  From
Bill Sommerfeld.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Aug 22 16:44:51 2000 UTC (23 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.137 (colored)

Should use an `intrptr_t' for address calculations rather than `int'.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 22 15:30:59 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored) to selected 1.137 (colored)

Fix a locking glitch in callwheel_slock handling.  Noted by Bill Sommerfeld.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 21 23:51:33 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.65: +13 -4 lines
Diff to previous 1.65 (colored) to selected 1.137 (colored)

Protect hardclock_ticks and softclock_ticks with the callwheel
lock to prevent a race between hardclock() and callout_reset().

Revision 1.65 / (download) - annotate - [select for diffs], Mon Aug 21 23:43:30 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored) to selected 1.137 (colored)

spllowersoftclock() is already void; no need to cast it.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Aug 21 23:40:56 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +48 -21 lines
Diff to previous 1.63 (colored) to selected 1.137 (colored)

Add a lock for the callwheel (callout facility), and only go to
splclock() while holding it.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Aug 1 04:57:29 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +19 -35 lines
Diff to previous 1.62 (colored) to selected 1.137 (colored)

ANSI'ify.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 20:12:18 2000 UTC (23 years, 8 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.60: +47 -21 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.137 (colored)

Pull up rev. 1.62:
New hzto() function from FreeBSD and Artur Grabowski <art@stacken.kth.se>.
Stops sleeps from returning early (by up to a clock tick), and return 0
ticks for timeouts that should happen now or in the past.

Returning 0 is different from the legacy hzto() interface, and callers
need to check for it.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jul 13 17:06:15 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +47 -21 lines
Diff to previous 1.61 (colored) to selected 1.137 (colored)

New hzto() function from FreeBSD and Artur Grabowski <art@stacken.kth.se>.
Stops sleeps from returning early (by up to a clock tick), and return 0
ticks for timeouts that should happen now or in the past.

Returning 0 is different from the legacy hzto() interface, and callers
need to check for it.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:15 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.137 (colored)

remove include of <vm/vm.h>

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:05 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.55: +103 -31 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.137 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 3 20:42:42 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.59: +21 -11 lines
Diff to previous 1.59 (colored) to selected 1.137 (colored)

Move schedticks and cp_time into schedstate_percpu.  Also, allow
non-primary CPUs to call hardclock(), but make them bail about
before updating global timekeeping state (that's the job of the
primary CPU).

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jun 2 15:53:04 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.137 (colored)

Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
"KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the
info and data structures for the relevent SysV IPC types.  The return
structures use fixed-size types and should be compat32 safe.  All
user-visible changes are protected with
	#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)

Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.

Make compat14 SysV IPC conversion functions and sysctl_file() static.

Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().

Revision 1.58 / (download) - annotate - [select for diffs], Mon May 29 23:48:33 2000 UTC (23 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +13 -9 lines
Diff to previous 1.57 (colored) to selected 1.137 (colored)

Use a better multiplier for the 60Hz case.

Revision 1.57 / (download) - annotate - [select for diffs], Mon May 29 15:05:10 2000 UTC (23 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +42 -4 lines
Diff to previous 1.56 (colored) to selected 1.137 (colored)

Update an outdated comment.
Allow all powers of 2 from 2^0 to 2^16 for hz.
Enable hz==1200.

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 29 14:58:59 2000 UTC (23 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +31 -11 lines
Diff to previous 1.55 (colored) to selected 1.137 (colored)

Improve the time_adj multiplier for the 100Hz and 1000Hz cases, and add a
1200Hz case.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:11 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.54: +18 -18 lines
Diff to previous 1.54 (colored) to selected 1.137 (colored)

Get rid of register declarations.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Mar 24 11:57:15 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.53: +7 -9 lines
Diff to previous 1.53 (colored) to selected 1.137 (colored)

Call the routine to calculate callwheelsize from allocsys() instead of
main() since some port like alpha and mips calls allocsys() before main()
is called.  While I'm here, I renamed some function.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 23 20:51:09 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.52: +1 -54 lines
Diff to previous 1.52 (colored) to selected 1.137 (colored)

Remove the CALLWHEEL_SORT code.  It was implemented just for experimenting,
and I had no plans to ever enable it.  A record of the code is now in the
CVS history of the file, so we can unclutter now.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Mar 23 06:30:10 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.51: +346 -112 lines
Diff to previous 1.51 (colored) to selected 1.137 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 19 20:05:51 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.50: +17 -1 lines
Diff to previous 1.50 (colored) to selected 1.137 (colored)

Move callout initialization to a single location; no need to duplicate
that code all over the place.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sun Oct 10 23:21:19 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.47: +5 -1 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.137 (colored)

pull up rev 1.50 from trunk (requested by sommerfeld):
  If using kernel NTP PLL, initialize "fixtick" to a reasonable
  approximation of reality if machine-dependent code doesn't.  This
  allows a NetBSD/alpha kernel (where hz=1024) with "options NTP" to
  synch up quite nicely (as opposed to having an frequency error of
  ~560ppm, which is outside the capture range of the PLL).

Revision 1.50 / (download) - annotate - [select for diffs], Mon Sep 6 20:44:02 1999 UTC (24 years, 6 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.49: +5 -1 lines
Diff to previous 1.49 (colored) to selected 1.137 (colored)

If using kernel PLL (for NTP), initialize "fixtick" to a reasonable
approximation of reality if the MD code doesn't.  This variable is the
equivalent of "tickfix" for the non-NTP path.

This allows an alpha kernel (where hz=1024) with "options NTP" to
synch up quite nicely (as opposed to having an frequency error of
~560ppm, which is outside the capture range of the PLL).

Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 5 18:08:15 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.137 (colored)

Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:00 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.47: +7 -2 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.137 (colored)

Sync w/ -current.

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 4 16:16:54 1999 UTC (24 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.47: +7 -2 lines
Diff to previous 1.47 (colored) to selected 1.137 (colored)

Align struct timeval time to the same alignment requirements of a quad.
This broke the sparc elf kernel which in microtime uses ldd to load both
words at the same time. The a.out kernel, just got lucky.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Feb 28 18:14:57 1999 UTC (25 years, 1 month ago) by ross
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored) to selected 1.137 (colored)

schedclk() -> schedclock(), for consistency with hardclock(), statclock(), ...
update comments for recent scheduler mods

Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 23 17:41:48 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.45: +38 -25 lines
Diff to previous 1.45 (colored) to selected 1.137 (colored)

While I'm on a fixed point kick, improve the NTP clock factor correction to
give <.1% error in all (supported) cases.  It doesn't cost us much.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Feb 23 02:56:04 1999 UTC (25 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.44: +11 -22 lines
Diff to previous 1.44 (colored) to selected 1.137 (colored)

Scheduler bug fixes and reorganization
* fix the ancient nice(1) bug, where nice +20 processes incorrectly
  steal 10 - 20% of the CPU, (or even more depending on load average)
* provide a new schedclk() mechanism at a new clock at schedhz, so high
  platform hz values don't cause nice +0 processes to look like they are
  niced
* change the algorithm slightly, and reorganize the code a lot
* fix percent-CPU calculation bugs, and eliminate some no-op code

=== nice bug === Correctly divide the scheduler queues between niced and
compute-bound processes. The current nice weight of two (sort of, see
`algorithm change' below) neatly divides the USRPRI queues in half; this
should have been used to clip p_estcpu, instead of UCHAR_MAX.  Besides
being the wrong amount, clipping an unsigned char to UCHAR_MAX is a no-op,
and it was done after decay_cpu() which can only _reduce_ the value.  It
has to be kept <= NICE_WEIGHT * PRIO_MAX - PPQ or processes can
scheduler-penalize themselves onto the same queue as nice +20 processes.
(Or even a higher one.)

=== New schedclk() mechansism === Some platforms should be cutting down
stathz before hitting the scheduler, since the scheduler algorithm only
works right in the vicinity of 64 Hz. Rather than prescale hz, then scale
back and forth by 4 every time p_estcpu is touched (each occurance an
abstraction violation), use p_estcpu without scaling and require schedhz
to be generated directly at the right frequency. Use a default stathz (well,
actually, profhz) / 4, so nothing changes unless a platform defines schedhz
and a new clock.  Define these for alpha, where hz==1024, and nice was
totally broke.

=== Algorithm change === The nice value used to be added to the
exponentially-decayed scheduler history value p_estcpu, in _addition_ to
be incorporated directly (with greater wieght) into the priority calculation.
At first glance, it appears to be a pointless increase of 1/8 the nice
effect (pri = p_estcpu/4 + nice*2), but it's actually at least 3x that
because it will ramp up linearly but be decayed only exponentially, thus
converging to an additional .75 nice for a loadaverage of one. I killed
this, it makes the behavior hard to control, almost impossible to analyze,
and the effect (~~nothing at for the first second, then somewhat increased
niceness after three seconds or more, depending on load average) pointless.

=== Other bugs === hz -> profhz in the p_pctcpu = f(p_cpticks) calcuation.
Collect scheduler functionality. Try to put each abstraction in just one
place.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Apr 22 07:08:11 1998 UTC (25 years, 11 months ago) by jonathan
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored) to selected 1.137 (colored)

defopt NTP and PPS_SYNC, in preparation for adding PPS support.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:38 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1, date-03-may-96
Changes since 1.1.1.1: +528 -1 lines
Diff to previous 1.1.1.1 (colored) to selected 1.137 (colored)

Import 4.4BSD-Lite for reference

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 31 10:42:11 1998 UTC (26 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.42: +12 -1 lines
Diff to previous 1.42 (colored) to selected 1.137 (colored)

Teach the NTP PLL how to lock when hz == 1000.

Revision 1.42 / (download) - annotate - [select for diffs], Wed May 21 19:55:45 1997 UTC (26 years, 10 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.41: +1 -39 lines
Diff to previous 1.41 (colored) to selected 1.137 (colored)

Moved db_show_callout() to ddb/db_xxx.c

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 5 19:25:26 1997 UTC (26 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored) to selected 1.137 (colored)

add case for 512Hz in NTP code

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:23:34 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.137 (colored)

Merge in changes from Trunk

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 28 04:45:35 1997 UTC (27 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.137 (colored)

Use splclock() to block time updates, not splhigh().

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sat Jan 18 04:31:41 1997 UTC (27 years, 2 months ago) by thorpej
Branch: thorpej-setroot
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.137 (colored)

Update from trunk.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jan 15 04:59:39 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored) to selected 1.137 (colored)

apply patch from PR 2788 (from Dennis Ferguson <dennis@jnx.com>) to
more smoothly apply "tickfix"es microsecond deltas (when compensating
for clocks running at > 1000Hz).

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 15 04:27:35 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.137 (colored)

fix from PR 2787 (from Dennis Ferguson <dennis@jnx.com>): when adjtime
is running (and NTP is not enabled), the adjtime()-handling code clobbers
any tickfix that may be necessary for systems with clocks with frequency
greater than 1000Hz.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 15 23:51:23 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.137 (colored)

clean up a few spaces vs. tabs bogons

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 24 16:13:04 1996 UTC (27 years, 8 months ago) by abrown
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.137 (colored)

Fix unused variable warning for an "int i" left over from the old disk
statistics code.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 12 22:00:46 1996 UTC (27 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +1 -15 lines
Diff to previous 1.34 (colored) to selected 1.137 (colored)

Remove old-style disk instrumentation code.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 13:17:16 1996 UTC (27 years, 9 months ago) by briggs
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.137 (colored)

Bring in changes to eradicate compile warning if NTP. With permission from jtc.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jun 9 04:51:03 1996 UTC (27 years, 9 months ago) by briggs
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored) to selected 1.137 (colored)

Do not declare tickfixcnt ifdef NTP.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 22 01:38:19 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored) to selected 1.137 (colored)

remove include of <sys/cpu.h>

Revision 1.32 / (download) - annotate - [select for diffs], Sat Mar 30 22:23:18 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored) to selected 1.137 (colored)

Fix db_printf formats.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 15 07:56:00 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.30: +63 -94 lines
Diff to previous 1.30 (colored) to selected 1.137 (colored)

Calculate the equivalent of `SHIFT_HZ' at run time, in initclocks().

Revision 1.30 / (download) - annotate - [select for diffs], Fri Mar 8 06:27:30 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.29: +3 -9 lines
Diff to previous 1.29 (colored) to selected 1.137 (colored)

Move an assignment inside #ifdef NTP.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 7 14:31:18 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored) to selected 1.137 (colored)

- Make things compile cleanly after the NTP additions.
- Remove unused variables in exec_ecoff.c

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 29 02:48:53 1996 UTC (28 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.27: +15 -10 lines
Diff to previous 1.27 (colored) to selected 1.137 (colored)

Fix for PR kern/2140: a  typo in the nested CPP if/else/endif caused
SHIFT_HZ to be undefined for values of HZ other than 64.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 27 04:20:37 1996 UTC (28 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.26: +820 -2 lines
Diff to previous 1.26 (colored) to selected 1.137 (colored)

Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.

This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
  60, 64, 100, 128, 256, 512, 1024.

Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.

If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.

These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386.  No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.

With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is  correct for FreeBSD, but not for NetBSD.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:24 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (colored) to selected 1.137 (colored)

More proto fixes

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:15 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.24: +12 -2 lines
Diff to previous 1.24 (colored) to selected 1.137 (colored)

First pass at prototyping

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 17 04:37:31 1996 UTC (28 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.137 (colored)

fix off-by-one error in tickfix code.  (should increment when count >=
interval, because count goes from 0->(interval-1) to count interval
ticks.)

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 28 19:16:41 1995 UTC (28 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.137 (colored)

Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Mar 3 01:24:03 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.21: +33 -16 lines
Diff to previous 1.21 (colored) to selected 1.137 (colored)

add support for clocks with hz > 1000, and for cases where 1000000 / hz != int

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 9 08:31:28 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored) to selected 1.137 (colored)

Clean up #includes.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Sep 18 21:56:16 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) to selected 1.137 (colored)

Add tickadj to clockinfo.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:19 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.18: +561 -1 lines
Diff to previous 1.18 (colored) to selected 1.137 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.18 / (download) - annotate - [select for diffs], Sat May 7 00:42:11 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored) to selected 1.137 (colored)

clock info gathering

Revision 1.17 / (download) - annotate - [select for diffs], Thu May 5 05:38:05 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored) to selected 1.137 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 29 23:16:19 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored) to selected 1.137 (colored)

change timeout/untimeout/wakeup/sleep/tsleep args to void *

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 27 10:47:51 1994 UTC (29 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored) to selected 1.137 (colored)

Routine to display callout table from DDB.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 7 07:33:49 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored) to selected 1.137 (colored)

kill support for 'dcfclk' ; shouldn't pollute tree for things not in NetBSD.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 1 01:50:38 1994 UTC (30 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored) to selected 1.137 (colored)

pass around a `clockframe *' instead of a `clockframe'

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 11 23:19:00 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored) to selected 1.137 (colored)

Remove the evil #ifndef; we no longer need it.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 18 04:20:20 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored) to selected 1.137 (colored)

Canonicalize all #includes.

Revision 1.8.2.11 / (download) - annotate - [select for diffs], Fri Nov 5 10:33:10 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.10: +1 -1 lines
Diff to previous 1.8.2.10 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.137 (colored)

Forgot to garbage-collect some crap with the last change.

Revision 1.8.2.10 / (download) - annotate - [select for diffs], Fri Nov 5 10:30:08 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.9: +1 -1 lines
Diff to previous 1.8.2.9 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

Merge changes from trunk.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 29 19:49:25 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored) to selected 1.137 (colored)

kill the process 'space' accounting collection for the following reasons:
	(1) text calculation incorrect (would 'overbill')
	(2) data calculation incorrect (would 'overbill')
	(3) the maxrss calculation uses stuff which isn't present
		on the sparc.
if 3/4 tests are questionable and/or broken, well...

Revision 1.8.2.9 / (download) - annotate - [select for diffs], Wed Oct 27 06:22:20 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.8: +1 -1 lines
Diff to previous 1.8.2.8 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

Don't bother to check p->p_pstats; we always expect it to be non-NULL.

Revision 1.8.2.8 / (download) - annotate - [select for diffs], Tue Oct 26 13:35:02 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.7: +1 -1 lines
Diff to previous 1.8.2.7 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

Merge changes from trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 19 23:37:50 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.137 (colored)

from Mark Tinguely, with mods by davidg and then fially fixed by cgd.
do the space-used integration, over time, for processes.

Revision 1.8.2.7 / (download) - annotate - [select for diffs], Sat Oct 16 02:35:29 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.6: +1 -1 lines
Diff to previous 1.8.2.6 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

#ifdef i386 kluge for softclock() shortcut can now die.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Fri Oct 15 09:42:26 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.5: +1 -1 lines
Diff to previous 1.8.2.5 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

Nuke arg to softclock().

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Wed Sep 29 06:31:02 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.4: +1 -1 lines
Diff to previous 1.8.2.4 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

init_main.c: Remove calls to startrtclock(), startkgclock(), and enablertclock().
sys_process.c: Remove profil() (now in subr_prof.c).
vfs_bio.c: Merge changes from trunk.
kern_clock.c, tty_pty.c: Trivial changes to match KNF.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Tue Sep 28 05:54:37 1993 UTC (30 years, 6 months ago) by deraadt
Branch: magnum
Changes since 1.8.2.3: +1 -1 lines
Diff to previous 1.8.2.3 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

stathz & profhz belong here too.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Tue Sep 28 05:46:00 1993 UTC (30 years, 6 months ago) by deraadt
Branch: magnum
Changes since 1.8.2.2: +1 -1 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

define some things from sys/kernel.h

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Fri Sep 24 08:50:57 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.8.2.1: +1 -1 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) to selected 1.137 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:11 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored) to selected 1.137 (colored)

init_main.c:  clock changes from 4.4; initclocks() is called after vfsinit().
No startrtclock() or enablertclock().  Some pseudo-device cruft, but this needs
to be updated.
kern_clock.c:  from 4.4: gatherstats() --> statclock().  statclock(),
hardclock(), and softclock() take a `struct clockframe *'.  New initclocks(),
harclock(), statclock(), startprofclock(), and stopprofclock().
kern_synch.c:  from 4.4: machine-independent swtch(), which is now where
process time is integrated.  Calls cpu_swtch() with the current process as an
arg.
subr_autoconf.c:  Fix typo.
subr_prf.c:  msgbufp and msgbufmapped are define in machdep.c
tty.c:  Make TIOCHPCL #ifdef COMPAT_43.
Incorporate changes from main branch.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 30 06:25:10 1993 UTC (30 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored) to selected 1.137 (colored)

blast it, i forgot two ('s

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 29 13:16:04 1993 UTC (30 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored) to selected 1.137 (colored)

added two __P() macros

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 27 06:05:32 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored) to selected 1.137 (colored)

* ansifications
* cleaned up hardclock() to avoid checking "p" multiple times, and avoid a
  gcc2 possible-use-before-initialisation warning.
* changed softclock() timeout callback functions to be of type timeout_t -
  a pointer to a void fn(int).  No-one was using the second, tick, argument
  that was being passed to these callbacks - it is much cleaner to drop the
  thing entirely, rather than add a whole heap of casts of dubious
  correctness to calls to timeout(), etc.  The old style is kept in an
  #ifdef, for future reference.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 15 01:28:29 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored) to selected 1.137 (colored)

include the (stupid and ugly) patch for the i386 interrupt stuff.
it seems to help stability, when included.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 2 23:03:45 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.137 (colored)

kill processes outright if they've exceeded their hard CPU limit.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 02:54:18 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) to selected 1.137 (colored)

add $Id$ strings, and clean up file headers where necessary

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 7 07:15:19 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.137 (colored)

add dcfclock support from patchkit patch 113

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.137 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.137 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>