kmalloc: No need to call fls if the size is already power-of-2 aligned
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:40:57 +0000 (20:40 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 10 Oct 2012 12:40:57 +0000 (20:40 +0800)
commit18042a752e6d15b37a86b9fe03d8d2a15b2aab7d
tree4565e083bf224e312b74ffc255faee9241304d19
parent3b556fa05f55fd8183b0fe6808cf4df5fb231b18
kmalloc: No need to call fls if the size is already power-of-2 aligned

Reduce code complexity
sys/kern/kern_slaballoc.c