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/loongson/dev | |
parent | 9766a336a6220a9e71109702969cabd575783192 (diff) |
use suspend_randomness() and resume_randomness()
Diffstat (limited to 'sys/arch/loongson/dev')
-rw-r--r-- | sys/arch/loongson/dev/apm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c index 5ab046491cc..49a597ab712 100644 --- a/sys/arch/loongson/dev/apm.c +++ b/sys/arch/loongson/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.25 2014/10/31 07:59:27 jsg Exp $ */ +/* $OpenBSD: apm.c,v 1.26 2014/12/18 20:01:33 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -383,6 +383,8 @@ apm_suspend(int state) rv = config_suspend_all(DVACT_SUSPEND); + suspend_randomness(); + #ifdef HIBERNATE if (state == APM_IOC_HIBERNATE) { uvm_pmr_zero_everything(); @@ -415,6 +417,7 @@ apm_suspend(int state) (void)enableintr(); splx(s); + resume_randomness(); /* force RNG upper level reseed */ bufq_restart(); config_suspend_all(DVACT_WAKEUP); |