All of lore.kernel.org
 help / color / mirror / Atom feed
From: marc@tensilica.com (Marc Gauthier)
To: linux-arm-kernel@lists.infradead.org
Subject: [Linux-Xtensa] Re: sched_clock always 0 and no process time accounting with 3.11-rc1
Date: Wed, 17 Jul 2013 08:15:08 -0700	[thread overview]
Message-ID: <8572CFB6-0D88-46F4-B055-7834F8B9BDA5@tensilica.com> (raw)
In-Reply-To: <20130717061925.GC6950@tarshish>

Hi Baruch,

On 2013-07-16, at 11:19 PM, Baruch Siach <baruch@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

  parent reply	other threads:[~2013-07-17 15:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAMo8BfLO31GgMMA_hENr0xm=qaUz3EVLtaQ8hewiQHdbV+s6sA@mail.gmail.com>
2013-07-17  6:19 ` sched_clock always 0 and no process time accounting with 3.11-rc1 Baruch Siach
2013-07-17  6:39   ` Max Filippov
2013-07-17  6:47     ` [Linux-Xtensa] " Baruch Siach
2013-07-17  7:02       ` Chris Zankel
2013-07-17  7:14         ` Baruch Siach
2013-07-17  9:03   ` Russell King - ARM Linux
2013-07-17  9:12     ` Baruch Siach
2013-07-17  9:15       ` Russell King - ARM Linux
2013-07-17 15:15   ` Marc Gauthier [this message]
2013-07-17 15:24     ` [Linux-Xtensa] " Russell King - ARM Linux
2013-07-17 16:17       ` Marc Gauthier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8572CFB6-0D88-46F4-B055-7834F8B9BDA5@tensilica.com \
    --to=marc@tensilica.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.