diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-10-13 17:24:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-10-13 17:24:47 +0000 |
commit | 201b20c5c252f65874f6669a87e20cc0a38a7e3b (patch) | |
tree | 367cb373f6b680c10132af8605c1f0516b788520 | |
parent | 053a21c71b26449c6a03ade4d739daf766fa08bd (diff) |
Move WOL activation to DVACT_POWERDOWN (instead of doing it twice, at
DVACT_QUIESCE and DVACT_SUSPEND time).
Tested by stsp.
-rw-r--r-- | sys/dev/ic/xl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 1ef4ab1b150..6ffe18235f5 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.105 2012/02/24 06:19:00 guenther Exp $ */ +/* $OpenBSD: xl.c,v 1.106 2012/10/13 17:24:46 deraadt Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -205,9 +205,6 @@ xl_activate(struct device *self, int act) switch (act) { case DVACT_QUIESCE: -#ifndef SMALL_KERNEL - xl_wol_power(sc); -#endif rv = config_activate_children(self, act); break; case DVACT_SUSPEND: @@ -215,10 +212,13 @@ xl_activate(struct device *self, int act) xl_reset(sc); xl_stop(sc); } + rv = config_activate_children(self, act); + break; + case DVACT_POWERDOWN: + rv = config_activate_children(self, act); #ifndef SMALL_KERNEL xl_wol_power(sc); #endif - rv = config_activate_children(self, act); break; case DVACT_RESUME: xl_reset(sc); |