diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-05-30 16:00:55 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-05-30 16:00:55 +0000 |
commit | 473011420b8ace24c74ee1efcb5fe898c21a6d90 (patch) | |
tree | 8fe406175a0568a56b2db4ab0aebb8dcba722a96 | |
parent | c1fedbf7f123816b7745ac79cff45d9fe2273520 (diff) |
Comment a KASSERT whose purpose wasn't immediately apparent
-rw-r--r-- | sys/kern/subr_hibernate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index 8a1f92c94e7..fb22acdf579 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.54 2013/04/09 18:58:03 mlarkin Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.55 2013/05/30 16:00:54 mlarkin Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -443,7 +443,9 @@ uvm_pmr_alloc_piglet(vaddr_t *va, paddr_t *pa, vsize_t sz, paddr_t align) int pdaemon_woken; vaddr_t piglet_va; + /* Ensure align is a power of 2 */ KASSERT((align & (align - 1)) == 0); + pdaemon_woken = 0; /* Didn't wake the pagedaemon. */ /* |