[Top] [All Lists]

Re: [PATCH] Make MIPS dynamic clocksource/clockevent clock code generic

To: Linus Walleij <>
Subject: Re: [PATCH] Make MIPS dynamic clocksource/clockevent clock code generic
From: Shane McDonald <>
Date: Sun, 18 Oct 2009 23:17:47 -0600
Cc:,,, Thomas Gleixner <>, Mikael Pettersson <>, Ralf Baechle <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=/VL8XZaLF0PIFKW9KjSi/6tqMUVoRRn20fdvmodZpto=; b=JYTCnYAowAM9M7SbIPCubzydWAOfDNWyr9kpXCwhgiZCAkH45B0bclqXStidsVASw5 AKfMB6e2QD93UxKq0i9sL4YZPrNQ2PewOtKEM2uU2QbDxnBOQdjmlI2rPupHR3lPeWn4 Jvv0GEPpw8oNy6IAdxdiaGTnpapsagIvCr8iA=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wWhyqWU0gPc+cKXykC3j/xc/bK94dRTiEN51hMVvnJZW1bZuKRUTmsaVsS8UBueetJ RL10pt796ac5uPeYhw55nJZPhs3ZPJyvNwDC/ikl6H0apnZfcJz9zgZlOlERXNdBMlHH 1MoUN4iQWkc/LRnidVpJQ7A51vIti+M3Xwnyk=
In-reply-to: <>
Original-recipient: rfc822;
References: <>

On Sat, Oct 17, 2009 at 4:48 PM, Linus Walleij <> wrote:
This moves the clocksource_set_clock() and clockevent_set_clock()
from the MIPS timer code into clockchips and clocksource where
it belongs. The patch was triggered by code posted by Mikael
Pettersson duplicating this code for the IOP ARM system. The
function signatures where altered slightly to fit into their
destination header files, unsigned int changed to u32 and inlined.

Signed-off-by: Linus Walleij <>
Cc: Thomas Gleixner <>
Cc: Mikael Pettersson <>
Cc: Ralf Baechle <>
Ralf has stated in earlier conversation that this should be moved,
now we risk duplicating code so let's move it.

I don't have access to a MIPS cross-compiler so please can the
MIPS people test this?

I have tested this patch on an RM7000-based MIPS system.  The patch compiles fine, and the kernel successfully runs.  You can add my:

Tested-by: Shane McDonald <>

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