/* Compute size order. Returns the exponent of the smaller power of two which is greater or equal to given number. */
int drm_order(unsigned long size)
/* Compute size order. Returns the exponent of the smaller power of two which is greater or equal to given number. */
int drm_order(unsigned long size)
{
	int order;
	unsigned long tmp;
	for (order = 0, tmp = size >> 1; tmp; tmp >>= 1, order++) ;
	if (size & (size - 1))
		++order;
	return order;
}