[Top] [All Lists]

[RFD] Clockevent support on MIPS

To: "Linux MIPS List" <>, "Ralf Baechle" <>,, "Atsushi Nemoto" <>
Subject: [RFD] Clockevent support on MIPS
From: "Franck Bui-Huu" <>
Date: Tue, 12 Jun 2007 11:55:54 +0200
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=FsrIeSaoQg4ckZXTrZPOM7ytGavlbCG2CD7JgtpClgOUVW3ctxpOtBsxpY9EWlyopvbnluqoSlshHTbDXCgvnUE1KPcxDdExoqiTVhZy54jB0xXiteEVws91rhYOyUwedfVJLcdrTlax7Uc/0Po3exBSnrHj3Je7Rry81aEaygo=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=K65AxxSWaL2mLagRVWc8SMfyvmxMvmyOOIhq4UU40ljQx5PFlMUPz8/3IWWVBuB6bVNfXLYlpFor3j/dFUj0HH347cT0O9ozzzbccLVbyZW948MD0EU8W0En5lALxu25ybAM1n8j/WovgLfhMREf7NEMDoiF95gOkKem7KtAKu8=
Original-recipient: rfc822;
Hi all,

I sent this patch just for starting a discussion on the MIPS time
code rework.

Recently Ralf announced his start of work on "clockevent support". I
tried to write my own clockevent support by that time. I reuse some
part of Ralf's work but end up to remove more code. I left it in a
very unfinished state because I don't have a lot of time to spend on
it and it should be sufficient as a starting point.

There's only one timer_interrupt handler left. Since Linux generic
time code takes care, now, of SMP and others issues. I also removed the
hackish low level interrupt handler since I'm not sure it's a clear win.

All code dealing with hpt has been moved in a file called
"hpt.c". Therefore we can easily stop compiling this code on platforms
that don't have it or don't want to use it. For platforms that don't
use this timer, they need to add their own timer support, but with the
generic time code it now really easy, and code duplication should be

I changed platform time init hooks since it seems to be the time for
that but I'm really not sure on that point though.

This patch is based on recent linux-mips repo
(linux-2.6.22-rc4-3-g38fc544) but I could rebase it on linux-time repo
if needed. If you want to compile/test it, you'll need to implement the
new platform hooks. It should be fairly simple for most of MIPS platforms...


Attachment: 0001-clockevents-support.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>