diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-18 20:01:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-18 20:01:34 +0000 |
commit | 06b4fbee4d3c74a28c980dcbf7c9ca455d3cb2f8 (patch) | |
tree | d9df35aa13c9c19367c94e7b1f7589edc4948a85 /sys/arch/zaurus/dev | |
parent | 9766a336a6220a9e71109702969cabd575783192 (diff) |
use suspend_randomness() and resume_randomness()
Diffstat (limited to 'sys/arch/zaurus/dev')
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_apm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c index 16bad432c87..58076254fa4 100644 --- a/sys/arch/zaurus/dev/zaurus_apm.c +++ b/sys/arch/zaurus/dev/zaurus_apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_apm.c,v 1.28 2014/09/20 09:28:24 kettenis Exp $ */ +/* $OpenBSD: zaurus_apm.c,v 1.29 2014/12/18 20:01:33 deraadt Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> @@ -657,6 +657,8 @@ zapm_poweroff(void) s = splhigh(); config_suspend_all(DVACT_SUSPEND); + suspend_randomness(); + /* XXX * Flag to disk drivers that they should "power down" the disk * when we get to DVACT_POWERDOWN. @@ -687,6 +689,7 @@ zapm_poweroff(void) config_suspend_all(DVACT_RESUME); splx(s); + resume_randomness(); /* force RNG upper level reseed */ bufq_restart(); config_suspend_all(DVACT_WAKEUP); |