linux-mips
[Top] [All Lists]

Clock Source in hrtimer

To: Linux MIPS Mailing List <linux-mips@linux-mips.org>
Subject: Clock Source in hrtimer
From: "wilbur.chan" <wilbur512@gmail.com>
Date: Sun, 15 Aug 2010 10:13:23 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=IVo5kWR7Sjaw3hrcu2Dh2/Kc4+vCz41EeB8q2rPxXKs=; b=FgbX+7F/uVNYWqOXNKL6tcia9qy+aM6bRuNggg90Bek38pPa/+Wq9/TBj0hTpEBfi9 RlbCK4k8GQ4I97+1z5dVFB73bWRYabdl/NvOTbdsldr+lvQNsIw8xi2jj7GqmhELCSpy +nO92PkHjs/7enp6lXowUTlgBagWYin9CtLyo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rQjF/F0LkwSGBH230pIDrcx0xcOCPfwI10lzaFlIk6i8wvqGNev6JCMny5ARaUzif8 e2X01amSBOGHZm/QhLeIikfbyUvqO8WyVDkDJf8By7576Jv/7WzNUl2KChnxXThIfo7U +1NAtoP7bNKA8obZKH0bmZX3iEXwJRZzyE1CI=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
I am planning to use  linux 2.6.24  with hrtimer enabled and with
CONFIG_NO_HZ  on mips xlr 732.


As we know, a   monotomic increasing Clock Source is required to
support hrtimer,  whose cycles could be retrieved  from
clocksource->read function.

However  on  xlr 732 ,there is only a 32 bits counter register, which
would overflow in 4s ( 2^32 / 1GHZ = 4).

How to solve this ?


Thanks in advance

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