From 06b4fbee4d3c74a28c980dcbf7c9ca455d3cb2f8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 18 Dec 2014 20:01:34 +0000 Subject: use suspend_randomness() and resume_randomness() --- sys/arch/zaurus/dev/zaurus_apm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/zaurus/dev') 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 @@ -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); -- cgit v1.2.3