All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Sebastian Smolorz <ssm@domain.hid>
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] [PATCH] Fix ipipe_tsc2ns for ARM
Date: Thu, 30 Nov 2006 15:07:54 +0100	[thread overview]
Message-ID: <456EE5BA.8080106@domain.hid> (raw)
In-Reply-To: <E1GpiKm-0003ul-LY@mailer.emlix.com>

Sebastian Smolorz wrote:
> Ok, see my attached patch. But can we assume in all cases that ipipe_tsc2ns is 
> used with a value smaller than a long long variable? The only usage of this 
> macro so far is in __ipipe_print_delay() which calls it with a substraction 
> of two unsigned long long variables.

The patch using do_div also assumes that t * 1000 will never overflow 64
bits. But I agree, it is less restrictive.

>>What value is a 64 bits when it fails, 
>>__ipipe_mach_ticks_per_jiffy or t ?
> 
> 
> Sorry, I'm not really sure what you mean here.

Forget it, I got the answer, it is t that is a 64 bits value.

-- 
                                                 Gilles Chanteperdrix


  reply	other threads:[~2006-11-30 14:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 15:17 [Adeos-main] [PATCH] Fix ipipe_tsc2ns for ARM Sebastian Smolorz
2006-11-29 17:27 ` Gilles Chanteperdrix
2006-11-30  9:35   ` Sebastian Smolorz
2006-11-30 14:07     ` Gilles Chanteperdrix [this message]
2006-12-04 10:29       ` Sebastian Smolorz
2006-12-04 11:15         ` Gilles Chanteperdrix
2006-12-06 11:57           ` Philippe Gerum
2006-12-06 13:17             ` Gilles Chanteperdrix

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=456EE5BA.8080106@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=adeos-main@gna.org \
    --cc=ssm@domain.hid \
    /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.