[Linux-Xtensa] Re: sched_clock always 0 and no process time accounting with 3.11-rc1

Marc Gauthier marc at tensilica.com
Wed Jul 17 11:15:08 EDT 2013


Hi Baruch,

On 2013-07-16, at 11:19 PM, Baruch Siach <baruch at tkos.co.il> wrote:
> -    sched_clock_mask = (1 << bits) - 1;
> +    sched_clock_mask = (1ULL << bits) - 1;

Might it be more efficient to use:

   sched_clock_mask = 0xffffffff >> (32 - bits);

to avoid using 64 bit ints?
(assuming bits > 0, didn't check)

-Marc




More information about the linux-arm-kernel mailing list