-/* $OpenBSD: apm.c,v 1.110 2014/10/17 15:35:31 deraadt Exp $ */
+/* $OpenBSD: apm.c,v 1.111 2014/12/18 17:00:19 deraadt Exp $ */
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
#include <sys/buf.h>
#include <sys/reboot.h>
#include <sys/event.h>
+#include <dev/rndvar.h>
#include <machine/conf.h>
#include <machine/cpu.h>
s = splhigh();
disable_intr();
config_suspend_all(DVACT_SUSPEND);
+ suspend_randomness();
/* XXX
* Flag to disk drivers that they should "power down" the disk
enable_intr();
splx(s);
+ resume_randomness(); /* force RNG upper level reseed */
/* restore hw.setperf */
if (cpu_setperf != NULL)
cpu_setperf(perflevel);