mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Andrew Morton <akpm@osdl.org>, Dave Jones <davej@redhat.com>,
	torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [CPUFREQ] Fix implicit declarations in ondemand.
Date: Thu, 6 Jul 2006 09:09:20 +1000	[thread overview]
Message-ID: <17580.18080.497286.940626@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <1152095066.32572.49.camel@pmac.infradead.org>

David Woodhouse writes:

> +static inline cputime64_t jiffies64_to_cputime64(const u64 jif)
> +{
> +	cputime_t ct;
> +	u64 sec;
> +
> +	/* have to be a little careful about overflow */
> +	ct = jif % HZ;
> +	sec = jif / HZ;

I think we want to use do_div here, just in case we ever get around to
implementing this stuff on ppc32.

Paul.

      reply	other threads:[~2006-07-05 23:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-05  9:22 Dave Jones
2006-07-05  9:36 ` Andrew Morton
2006-07-05  9:42   ` Dave Jones
2006-07-05  9:43   ` David Woodhouse
2006-07-05  9:46     ` Dave Jones
2006-07-05  9:57       ` Andrew Morton
2006-07-05 10:24         ` David Woodhouse
2006-07-05 23:09           ` Paul Mackerras [this message]

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=17580.18080.497286.940626@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=akpm@osdl.org \
    --cc=davej@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®