is there something special about the drm_order() routine in
drivers/char/drm/drm_bufs.c:

=====
/**
 * Compute size order.  Returns the exponent of the smaller power of two which
 * is greater or equal to given number.
 *
 * \param size size.
 * \return order.
 *
 * \todo Can be made faster.
 */
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;
}
=====

that it can't simply be replaced by an appropriate call to ilog2()
defined in include/linux/log2.h?  just curious.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to