All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Dovera <pdovera@bmind.it>
To: linux-alpha@vger.kernel.org
Cc: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Subject: Re: linux-2.6.0-test6 error during linking
Date: Mon, 29 Sep 2003 20:05:10 +0200	[thread overview]
Message-ID: <3F787456.20300@bmind.it> (raw)
In-Reply-To: <87lls8nf0d.fsf@student.uni-tuebingen.de>

Thanks^2   to you!
It works fine
I'm trying 2.6.0-test6 on Tsunami Alpha platform

Ciao,
Paolo

Falk Hueffner wrote:

>Balint Cristian <rezso@rdsor.ro> writes:
>  
>
>>On Sunday 28 September 2003 23:51, Falk Hueffner wrote:
>>    
>>
>>>sched_clock is not implemented yet for Alpha. It is supposed to
>>>return a high resolution timer. As workaround, you could just copy
>>>the implementation from ARM, which simply returns the value based
>>>on jiffies.  Ideally, one would take into account the cycle
>>>counter, but it wraps every few seconds, which has to be taken
>>>care of.
>>>      
>>>
>>Can post here a patch based on arm ?
>>    
>>
>
>Well, just copy the function:
>
>--- arch/alpha/kernel/time.c~   2003-09-28 02:50:20.000000000 +0200
>+++ arch/alpha/kernel/time.c    2003-09-28 13:39:58.000000000 +0200
>@@ -570,3 +570,12 @@
> 
>        return retval;
> }
>+
>+/*
>+ * Scheduler clock - returns current time in nanosec units.
>+ * Should probably take rpcc into account for improved resolution
>+ */
>+unsigned long long sched_clock(void)
>+{
>+       return (unsigned long long) jiffies * (1000000000 / HZ);
>+}
>
>I've not tested this, it should work, but probably scheduling
>behaviour will not be as good as it could be, although HZ being 1000
>(or larger) on Alpha should help.
>
>  
>
>>Eventualy post it on linux kernel list or to Richard Henderson ?
>>    
>>
>
>Not without testing it, and I have no time for that currently.
>
>  
>


  parent reply	other threads:[~2003-09-29 18:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-28 19:55 linux-2.6.0-test6 error during linking Paolo Dovera
2003-09-28 20:51 ` Falk Hueffner
2003-09-29  8:48   ` Balint Cristian
2003-09-29  9:02     ` Falk Hueffner
2003-09-29  9:05       ` Balint Cristian
2003-09-29 18:05       ` Paolo Dovera [this message]
2003-09-29  9:06     ` Oliver Pitzeier

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=3F787456.20300@bmind.it \
    --to=pdovera@bmind.it \
    --cc=falk.hueffner@student.uni-tuebingen.de \
    --cc=linux-alpha@vger.kernel.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.