[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Tue, 26 Sep 2000 17:19:32 +0200
- From: magin at skil.camelot.de (Gunter Magin)
- Subject: Processor Load
On Tue, Sep 26, 2000 at 09:41:49AM -0500, Joel Sherrill wrote:
> The most accurate solution is to have a counter/time that is checked
> each time a task switch occurs. Then the outgoing task is "charged"
> for the time spent executing.
Are there any hooks in the scheduler available where a BSP function can
be called to read a high resolution free running clock, as it is available
in some modern processors?
For instance, the 8xx family has the TMBH/TMBL combo or the decrementer
register (the last one is common to all members of the PPC architecture),
which can be configured to run with a very high resolution (up to
I already use that timer successfully to evaluate the behaviour of my