CVS log for src/sys/dev/sysmon/sysmon_power.c
Up to [cvs.NetBSD.org] / src / sys / dev / sysmon
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Dec 31 11:05:41 2021 UTC (2 years, 11 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +12 -16
lines
sysmon: Delete trailing whitespace. No functional change intended.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Sep 26 16:24:21 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +19 -18
lines
- Call selnotify() with sysmon_power_event_queue_mtx held, passing the
correct hints. Adjust filt_sysmon_power_read() accordingly (assert
that the mutex is held iff NOTE_SUBMIT).
- Mark sysmon_power_read_filtops as MPSAFE.
- Use seltrue_filtops rather than rolling our own with filt_seltrue.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:09 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -4
lines
Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.
This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.
NetBSD 9.99.89
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:02 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +4 -8
lines
Sync w/ HEAD.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Dec 18 01:46:39 2020 UTC (3 years, 11 months ago) by thorpej
Branches: 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
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -8
lines
Use sel{remove,record}_knote().
Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Oct 30 22:19:18 2020 UTC (4 years, 1 month ago) by christos
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +10 -10
lines
fix indentation
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jun 11 02:39:31 2020 UTC (4 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3
lines
Update for proplib(3) API changes.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Jun 8 20:18:13 2020 UTC (4 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3
lines
Update for proplib(3) API changes.
Revision 1.58.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:48 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.58.4.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.2: +2 -0
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:12 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +5 -5
lines
Merge changes from current as of 20200406
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Jan 1 22:57:17 2020 UTC (4 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5
lines
- Introduce a new global kernel variable "shutting_down" to indicate that
the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
places remain where it's still called directly, but those are in early
pre-main() machdep locations.
Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.
Revision 1.57.10.1: download - view: text, markup, annotated - select for diffs
Tue Sep 10 16:02:22 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +4 -2
lines
Pull up following revision(s) (requested by maxv in ticket #1371):
sys/dev/sysmon/sysmon_power.c: revision 1.61
Fix info leak, not all of 'pev' is initialized.
Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 1 10:57:53 2019 UTC (5 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +4 -2
lines
Pull up following revision(s) (requested by maxv in ticket #128):
sys/dev/sysmon/sysmon_power.c: revision 1.61
Fix info leak, not all of 'pev' is initialized.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Aug 20 18:43:57 2019 UTC (5 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2
lines
Fix info leak, not all of 'pev' is initialized.
Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:33 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +7 -12
lines
Sync with HEAD
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:56 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:42 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +7 -12
lines
Merge the [pgoyette-compat] branch
Revision 1.58.2.9: download - view: text, markup, annotated - select for diffs
Tue Jan 22 07:42:40 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.58.2.8: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.8: +4 -12
lines
Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function. Almost
all of the hooks are called only once, and although we lose the
ability of doing things like
if (MODULE_HOOK_CALL(...) == 0) ...
we simplify things quite a bit. With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.
FWIW, the above if now needs to written as
int ret;
MODULE_HOOK_CALL(..., ret);
if (ret == 0) ...
with appropriate use of braces {}.
Revision 1.58.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 21 06:49:28 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.7: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.7: +3 -3
lines
No need to declare the hook_call() function for void hooks. So
remove and simplify.
Revision 1.58.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:27 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.6: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.6: +6 -6
lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
Revision 1.58.2.6: download - view: text, markup, annotated - select for diffs
Sun Jan 13 10:49:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.5: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.5: +5 -5
lines
Remove the HOOK2 versions of the MODULE_HOOK macros. There were
only a few uses, and using them led to some lack of clarity in the
code. Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.
This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.
Revision 1.58.2.5: download - view: text, markup, annotated - select for diffs
Sat Sep 29 21:36:14 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.4: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.4: +3 -4
lines
In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).
Revision 1.58.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 18 23:03:54 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.3: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.3: +4 -4
lines
The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers
Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 18 01:15:58 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.2: +5 -2
lines
Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation. Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.
Implement MP-safe hooks for the usb_subr_30 code. Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.
Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 17 11:04:31 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +10 -3
lines
Adapt (most of) the indirect function pointers to the new MP-safe
mechanism. Still remaining are the compat_netbsd32 stuff, and
some usb subroutines.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 27 07:29:44 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -12
lines
Create a compat_40 module
Revision 1.46.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:33 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.46.6.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.6.1: +100 -11
lines
update from HEAD
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:39 2017 UTC (7 years, 1 month ago) by maya
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
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,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +14 -6
lines
Use C99 initializer for filterops
Mostly done with spatch with touchups for indentation
@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- { a, b, c, d
+ {
+ .f_isfd = a,
+ .f_attach = b,
+ .f_detach = c,
+ .f_event = d,
};
Revision 1.48.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:58 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.48.2.3: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.3: +3 -3
lines
Sync with HEAD (as of 26th Dec)
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Dec 14 01:08:47 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
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,
netbsd-8-base,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3
lines
sysmon's components need to be MODULE_CLASS_DRIVER so they will get
initialized before we configure/initialize any devices that interact
with them.
Thanks, marty!
Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:01 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.2: +3 -3
lines
Sync with HEAD
Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:50:33 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3
lines
to garnish, dust with _KERNEL_OPT
Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +87 -13
lines
Sync with HEAD
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Sat May 16 04:06:05 2015 UTC (9 years, 6 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
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
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.1: +8 -2
lines
Pull up following revision(s) (requested by maxv in ticket #761):
sys/arch/sgimips/dev/scn.c: revision 1.8
sys/arch/sgimips/mace/macekbc.c: revision 1.8
sys/dev/hpc/hpcfb.c: revision 1.59
sys/dev/i2c/i2c.c: revision 1.47
sys/dev/ic/mfi.c: revision 1.57
sys/dev/if_ndis/if_ndis_pci.c: revision 1.21
sys/dev/sysmon/sysmon_power.c: revisions 1.50-1.52
sys/dev/usb/umass_isdata.c: revision 1.31
fix double free, found by Brainy.
--
Free cmd on error if we allocated it.
Found by Brainy, reported by maxv@.
--
don't leak rl (but there are other leaks), found by Brainy.
--
Free ped if we can't hand it to the power daemon.
Found by Brainy, reported by maxv@.
--
don't forget to free the dictionary.
--
another missing free dict.
--
fix leak, found by Brainy.
--
don't malloc a tiny, fixed size buffer to scribble into, then not use it
and never free it either
found by Brainy
--
malloc() -> kmem_alloc() for private data, also kmem_free() them if we
don't finish attaching for whatever reason
found by Brainy
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Apr 25 23:40:09 2015 UTC (9 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +19 -5
lines
Handle early initialization requirements - thanks martin@ and others
Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Apr 23 23:22:03 2015 UTC (9 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +64 -4
lines
Modularize sysmon and its components
Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:25 2015 UTC (9 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
Convert sys/dev to use <sys/rndsource.h>.
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:13 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -2
lines
Sync with HEAD
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Apr 4 15:31:17 2015 UTC (9 years, 8 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -2
lines
another missing free dict.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Apr 4 15:29:59 2015 UTC (9 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2
lines
don't forget to free the dictionary.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Apr 4 15:25:16 2015 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -2
lines
Free ped if we can't hand it to the power daemon.
Found by Brainy, reported by maxv@.
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 12 21:15:12 2015 UTC (9 years, 10 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #415):
share/man/man9/sysmon_pswitch.9: revision 1.6
sys/dev/pci/if_wpi.c: revision 1.70, 1.71
sys/dev/pci/if_wpivar.h: revision 1.19
sys/dev/sysmon/sysmon_power.c: revision 1.49
sys/sys/power.h: revision 1.20
As proposed on tech-net@, introduce a new switch type, PSWITCH_TYPE_RADIO,
to be used to report to userland hardware radio switch changes.
powerd(8) will call a "radio_button" script to handle the event.
This script can e.g. start or stop wpa_supplicant.
Update wpi(4) to report PSWITCH_TYPE_RADIO events to sysmon.
--
Take sc_rsw_mtx before calling wpi_getrfkill() from wpi_init(),
Problem reported and patch tested by chris at chriswareham.net
Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Jan 6 15:39:54 2015 UTC (9 years, 11 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -2
lines
As proposed on tech-net@, introduce a new switch type, PSWITCH_TYPE_RADIO,
to be used to report to userland hardware radio switch changes.
powerd(8) will call a "radio_button" script to handle the event.
This script can e.g. start or stop wpa_supplicant.
Update wpi(4) to report PSWITCH_TYPE_RADIO events to sysmon.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Nov 21 23:28:57 2014 UTC (10 years ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
Explicitly compare to NULL to show clang that the bool conversion is
intentional, even if it is always true in case of the arrays.
Revision 1.46.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:50 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:36 2014 UTC (10 years, 4 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Merge tls-earlyentropy branch into HEAD.
Revision 1.46.20.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:33 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +3 -3
lines
Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:05 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +11 -2
lines
sync with head
Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:02 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +11 -2
lines
merge to -current.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:07 2012 UTC (12 years, 10 months ago) by tls
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-earlyentropy-base,
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,
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,
khorben-n900,
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,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys,
tls-earlyentropy
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +11 -2
lines
Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.
ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jul 22 14:21:40 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +10 -10
lines
Ensure events come off the list in the same order they went on.
Hotkey press/release events now happen in the correct order.
Revision 1.37.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:12 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37.4.4: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.4.4: +4 -4
lines
sync with head.
Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:50 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +16 -4
lines
Sync with HEAD.
Revision 1.37.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:04 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37.4.3: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.3: +15 -2
lines
sync with head
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Mar 11 13:51:01 2010 UTC (14 years, 9 months ago) by jruoho
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4
lines
Fix comment typos (mangement, managmenet).
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Feb 15 22:32:04 2010 UTC (14 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +14 -2
lines
For symmetry, allow warning and critical upper-limits for capacity
sensors.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 6 18:28:10 2009 UTC (15 years, 1 month ago) by jakllsch
Branches: MAIN
CVS tags: uebayasi-xip-base,
matt-premerge-20091211
Branch point for: uebayasi-xip
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2
lines
Fix POWER_IOC_GET_TYPE.
The longest string in use with this seems to have been "acpi",
so size_t covered that, but on 32-bit ports omited the NUL.
Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:20 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +8 -20
lines
Sync with HEAD.
Revision 1.37.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:29 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37.4.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.2: +8 -20
lines
sync with head
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jun 8 00:55:35 2009 UTC (15 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
jymxensuspend-base,
jym-xensuspend-nbase
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -20
lines
General clean-up and some restructuring of event handling. This is a
precursor to letting sensor drivers actually exchange limits/thresholds
with user-land.
Revision 1.37.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:19 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37.4.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.1: +21 -6
lines
sync with head.
Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:05 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +21 -6
lines
Sync with HEAD.
Revision 1.35.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:32 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35.6.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.6.2: +19 -4
lines
Sync with HEAD.
Revision 1.37.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:10 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.37.6.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.6.1: +21 -6
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Sep 5 21:58:32 2008 UTC (16 years, 3 months ago) by gmcgarry
Branches: MAIN
CVS tags: yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
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-nb5-pq3-base,
matt-nb5-pq3,
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,
jym-xensuspend-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +9 -6
lines
Rearrange sysmonread_power() to have a single exit point, which simplifies
the locking and fixes -Wunreachable-code warning.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Aug 22 11:27:50 2008 UTC (16 years, 3 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +14 -2
lines
1. provide for warning-min and warning-max alarm levels in addition to
critical-min and critical-max; also, a battery warning-capacity is
added in addition to a critical-capacity.
2. usr.sbin/envstat is modified to introduce a -W command line switch to
display the warning-* values instead of the critical-* values, and
envstat(8) and envsys.conf(5) man pages are updated appropriately.
3. Treat user-defined limits as a single continuum and generate a single
event regardless of how many boundaries a change in sensor value
crosses; ditto for driver-defined limits.
Fixes my PR/39021
Fixes my PR/39022
OK'd by christos@ bouyer@ cube@
Revision 1.37.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:30 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -4
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.35.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:52 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35.6.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.6.1: +4 -2
lines
Sync with HEAD.
Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:46 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +6 -4
lines
sync with head.
Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:06 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -4
lines
sync with head.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat May 10 14:01:32 2008 UTC (16 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
hpcarm-cleanup-nbase
Branch point for: haad-dm
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -4
lines
Use aprint when reporting AC adapter status.
Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:57 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -3
lines
Sync with HEAD.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:09 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -3
lines
sync with head.
Revision 1.22.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:52 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.22.2.2: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.2: +5 -3
lines
sync with HEAD
Revision 1.10.12.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:27 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.7: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.12.7: +5 -3
lines
sync with head.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:51 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
wrstuden-revivesa
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -3
lines
Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.
- Merge selwakeup() and selnotify() calls into a single selnotify().
- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.
Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Feb 29 18:07:11 2008 UTC (16 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2
lines
Added a missing break that was bothering me.
Revision 1.10.12.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:38 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.6: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.6: +27 -2
lines
sync with head
Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:34 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.22.2.1: preferred, colored
Changes since revision 1.22.2.1: +43 -13
lines
sync with HEAD
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:15 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +9 -2
lines
Sync with HEAD
Revision 1.29.4.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:28 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29.4.2: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.2: +27 -2
lines
Sync with HEAD.
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:29 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +27 -2
lines
Sync with head.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Dec 22 18:35:13 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +9 -2
lines
Handle hotkey events using /etc/powerd/scripts/hotkey_button, ok xtraeme
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:40:00 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +20 -2
lines
sync with head.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:57:19 2007 UTC (17 years ago) by martin
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -2
lines
Add missing <sys/device.h> include.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:23 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +19 -2
lines
Merge jmcneill-pm branch.
Revision 1.20.6.10: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:00 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.20.6.9: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.6.9: +4 -4
lines
Sync with HEAD.
Revision 1.29.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:59 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.4.1: +4 -4
lines
Sync with HEAD.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:31 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4
lines
Sync with head.
Revision 1.20.6.9: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:36 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.20.6.8: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.8: +4 -4
lines
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.10.12.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:26 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.5: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.5: +4 -4
lines
sync with head
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:19:54 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:52 2007 UTC (17 years ago) by ad
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:24 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +16 -11
lines
Sync with HEAD.
Revision 1.10.12.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:32 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.4: +16 -11
lines
sync with head.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:40 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +16 -11
lines
Sync with HEAD
Revision 1.20.6.8: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:47 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20.6.7: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.7: +16 -11
lines
Sync with HEAD.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Nov 10 09:32:24 2007 UTC (17 years, 1 month ago) by xtraeme
Branches: MAIN
CVS tags: vmlocking2-base1,
vmlocking-nbase,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +16 -11
lines
Add another flag that is set only when the event was enqueued
(and its dictionary created) successfully and use it in the
POWER_EVENT_RECVDICT ioctl to check if the dictionary is ready before
calling prop_dictionary_copyout_ioctl().
This fixes a rare condition when too many events are enqueued and
there wasn't time to create the dictionary, so prop_dictionary_copyout_ioctl()
fails with a NULL pointer dereference.
Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:21 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +195 -86
lines
sync with HEAD
Revision 1.20.6.7: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:32 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20.6.6: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.6: +4 -4
lines
Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
three layers (class logic, device logic, bus logic), all of them being
optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
not suspended (even partially), device_is_enabled returns true if the
device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
pnp_system_resume. Before running any suspend/resume handlers, check
that all currently attached devices support power management and bail
out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
can register what events they are interested in and whether the handler
should be global or not.
- Introduce device_active API for devices to mark themselve in use from
either the system or the device. Use this to implement the idle handling
for audio and input devices. This is intended to replace most ad-hoc
watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.
Revision 1.10.12.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:34:22 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.3: +189 -87
lines
sync with head.
Revision 1.20.6.6: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:47:39 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20.6.5: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.5: +9 -2
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:20 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.1: +157 -76
lines
sync with head.
Revision 1.17.2.9: download - view: text, markup, annotated - select for diffs
Fri Oct 12 17:03:15 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.8: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.8: +9 -2
lines
Sync with head.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Oct 10 23:25:40 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base,
jmcneill-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -2
lines
Fix the problems described in:
http://mail-index.netbsd.org/current-users/2007/07/16/0012.html
- Introduce sme_class into the sysmon_envsys struct to specify a
class; currently there are two classes: SME_CLASS_ACADAPTER and
SME_CLASS_BATTERY.
- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when
all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not
any SME_CLASS_ACADAPTER connected.
- Add the 'low-power' event into the sensor_battery script that will
shutdown the system gracefully via 'shutdown -p'. If powerd(8) is
not running, cpu_reboot(9) with RB_POWERDOWN is used.
- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a
SME_CLASS_BATTERY device.
Update the documentation accordingly to these changes.
Revision 1.17.2.8: download - view: text, markup, annotated - select for diffs
Tue Oct 9 15:22:13 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.7: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.7: +13 -6
lines
Sync with head.
Revision 1.17.2.7: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:42:06 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.6: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.6: +180 -83
lines
Sync with head.
Revision 1.20.6.5: download - view: text, markup, annotated - select for diffs
Sun Oct 7 13:25:06 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20.6.4: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.4: +149 -76
lines
Sync with HEAD.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Oct 6 22:07:42 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +8 -4
lines
Forgot to change the kmem_zalloc(9) calls to use KM_NOSLEEP in previous,
as was suggested by rmind.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Oct 6 21:58:40 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +139 -77
lines
Fix a bug that happened when two or more events were received almost
at the same time and the code accessed to an unexistent dictionary:
- Rather than using a global dictionary, use a singly linked list to
access to the dictionaries, one per event.
- When the dictionary has been sent to userland, destroy it and remove
it from the list.
With that change it is possible to receive multiple events at the
same time without panics; again thanks to rmind@ for comments and help
with locking.
Reviewed and ok by rmind.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:33 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +39 -14
lines
sync with head.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Oct 6 02:49:46 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -2
lines
- sysmon_power_daemon_task: check if pev is valid before use.
- Add two more KASSERTS in strategic places.
Revision 1.20.6.4: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:41 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20.6.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.3: +48 -27
lines
Sync with HEAD.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Sep 25 19:27:08 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +39 -14
lines
- Don't use _nocopy in prop_dictionary_set_cstring, the string is part
of another object that will be released shortly.
- Fix a memleak: add sysmon_power_destroy_dictionary() and remove
all objects that are currently in the dictionary and finally release
the dictionary.
Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:55:24 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.2: +11 -15
lines
Sync with HEAD.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Sep 4 16:54:02 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +11 -15
lines
- Remove ENVSYS_GSTRING and the genstr member from envsys_data_t.
(at least three or four persons were against it).
- Add a new sensor type: ENVSYS_BATTERY_STATE, this uses value_cur
and some predefined values in a static table, like ENVSYS_DRIVE.
- Move all static tables to sysmon_envsys_tables.c and use a function
on it to retrieve a pointer to the struct of the specified type.
- Rename the ENVSYS_FMONDRVSTCHANGED to ENVSYS_FMONSTCHANGED and make
it generic for Battery state and drive sensors (this flag enables
monitoring on these sensors when state has been changed).
- Update sysmon_penvsys_event() to report state changes on
ENVSYS_BATTERY_STATE sensors and remove other type of events, with
PENVSYS_EVENT_STATE_CHANGED they are not necessary anymore.
Revision 1.20.6.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:40 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.20.6.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.2: +10 -2
lines
Sync with HEAD.
Revision 1.10.12.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:51 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.2: +492 -121
lines
sync with head.
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:22:00 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +10 -2
lines
Sync with HEAD.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Sep 3 01:29:51 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -2
lines
Add some KASSERT(mutex_owned(&foo_lock)).
Revision 1.17.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:37:50 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.5: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.5: +3 -3
lines
Sync with HEAD.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Aug 17 16:52:52 2007 UTC (17 years, 3 months ago) by pavel
Branches: MAIN
Branch point for: matt-armv6
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2
lines
Add missing #include <prop/proplib.h>, should fix build failure reported
by Juergen Hannken-Illjes. The code apparently relied on proplib.h being
included indirectly through proc.h -> event.h -> ioctl.h -> dkio.h.
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:46 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
Sync with HEAD.
Revision 1.20.6.2: download - view: text, markup, annotated - select for diffs
Thu Aug 9 02:37:14 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.20.6.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.1: +3 -3
lines
Sync with HEAD.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Aug 7 14:03:00 2007 UTC (17 years, 4 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
The acpilid(4) powerd script is "lid_switch" not "lid_button"... found
by jmcneill@.
Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 22:17:24 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -2
lines
Pull in power management changes from private branch.
Revision 1.17.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:49 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.4: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.4: +90 -27
lines
Sync with head.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:27:53 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -4
lines
The power daemon is now an LWP.
Revision 1.17.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:21:46 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.3: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.3: +395 -97
lines
Sync with head.
Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:25 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +483 -121
lines
Sync with head.
Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:30:48 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.2: +4 -4
lines
Make sysmon_power_daemon of type lwp_t *.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 2 15:18:30 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: MAIN
CVS tags: mjf-ufs-trans-base
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -3
lines
Add PENVSYS_TYPE_INDICATOR to handle events on Indicator sensors.
ipmi(4) uses this for the Intrussion and Power Supply sensors.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 1 07:36:59 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +481 -121
lines
Imported envsys 2, a brief description of the new features:
(Part 1: API)
* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
sysmon_power(9) and powerd(8), that means there is no 32 bytes event
size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.
Tested by:
blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:57:47 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.1: +3 -2
lines
Compile fixes.
Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 21 20:10:19 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
GC the simplelock/spinlock debugging stuff.
Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:13 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +3 -3
lines
Sync with HEAD.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:45 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Feb 19 06:08:37 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +34 -39
lines
Back out previous for now. There isn't currently an easy way to set up
shared state before these get attached or used.
From xtraeme@.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 18 23:38:11 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +41 -36
lines
* Replace simple_locks and exclusive locks with adaptive mutexes.
* Replace ltsleep/wakeup pairs with condition variables
(cv_init/cv_wait/cv_broadcast).
Reviewed by ad@.
Revision 1.10.12.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:38 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.12.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.12.1: +8 -5
lines
sync with head.
Revision 1.12.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:16 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.12.8.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.8.1: +11 -11
lines
sync with head.
Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:50 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +8 -5
lines
Sync with head.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:26 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
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
Branch point for: yamt-idlelwp
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -11
lines
__unused removal on arguments; approved by core.
Revision 1.12.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:51 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +12 -9
lines
sync with head
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:59 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +12 -9
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:55:16 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -3
lines
sync with head
Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Thu Aug 3 12:35:41 2006 UTC (18 years, 4 months ago) by tron
Branches: netbsd-2
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3
lines
Pull up following revision(s) (requested by freza in ticket #10642):
sys/dev/sysmon/sysmon_power.c: revision 1.12 via patch
Advance queue indices properly instead of silently rewriting
sysmon_power_event_queue[0] all the time.
OK by thorpej@
Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:28 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -3
lines
sync with head.
Revision 1.10.12.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:07:30 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -9
lines
sync with head.
Revision 1.11.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:05:49 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -3
lines
Sync with head.
Revision 1.10.10.1: download - view: text, markup, annotated - select for diffs
Tue Jun 13 10:23:44 2006 UTC (18 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -3
lines
Pull up following revision(s) (requested by freza in ticket #1369):
sys/dev/sysmon/sysmon_power.c: revision 1.12
Advance queue indices properly instead of silently rewriting
sysmon_power_event_queue[0] all the time.
OK by thorpej@
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jun 8 04:23:34 2006 UTC (18 years, 6 months ago) by freza
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Advance queue indices properly instead of silently rewriting
sysmon_power_event_queue[0] all the time.
OK by thorpej@
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:56 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
peter-altq-base,
peter-altq,
elad-kernelauth-base,
elad-kernelauth
Branch point for: yamt-pdpolicy,
rpaulo-netinet-merge-pcb,
chap-midi
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -8
lines
merge ktrace-lwp.
Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:33:42 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.7.2.3: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.3: +8 -8
lines
Fix the sync with head I botched.
Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:51:34 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.7.2.2: preferred, colored
Changes since revision 1.7.2.2: +7 -7
lines
Sync with HEAD.
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:51:29 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.7.2.1: preferred, colored
Changes since revision 1.7.2.1: +22 -1
lines
Sync with HEAD
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat May 22 11:32:50 2004 UTC (20 years, 6 months ago) by cube
Branches: 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,
yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
netbsd-3-base,
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,
ktrace-lwp-base,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-lazymbuf,
netbsd-3
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -6
lines
According to acpi_acad.c and powerd(8), PRESSED event for AC adapter device
means it gets connected. It feels odd to be told the AC adapter went
offline right after plugging it in.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon May 3 07:43:37 2004 UTC (20 years, 7 months ago) by kochi
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +20 -2
lines
Add AC adapter event type.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jul 14 15:47:28 2003 UTC (21 years, 4 months ago) by lukem
Branches: MAIN
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-base,
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-0
Branch point for: netbsd-2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -1
lines
add missing __KERNEL_RCSID()
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:22 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -7
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:50 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -6
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:45 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -7
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 19 23:24:55 2003 UTC (21 years, 6 months ago) by kochi
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +15 -10
lines
Fix a locking problem, which closes kern/21607.
ok'd by Jason Thorpe.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun May 11 18:52:39 2003 UTC (21 years, 7 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
Fix format / number of argument mismatch for a printf.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Apr 20 20:48:28 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +16 -1
lines
Add a "reset button" type.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Apr 18 01:31:35 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +321 -9
lines
* Add a generic power management event API, defined in <sys/power.h>.
Right now, only power switch state change events are supported. This
is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.
This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Apr 17 01:02:21 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Start at a power management framework for sysmon. Right now we just
provide some VERY basic support for power/sleep buttons and lid switches;
if someone presses the power button, shut down the system semi-gracefully.
Eventually, we will send events for all types of button/lid events down
to a userland power management daemon, which will be able to define a
separate policy for each button/switch.
CVSweb <webmaster@jp.NetBSD.org>