linux-mips
[Top] [All Lists]

Re: [PATCH -queue 1/3] MIPS: add a common mips_sched_clock()

To: Wu Zhangjin <wuzhangjin@gmail.com>
Subject: Re: [PATCH -queue 1/3] MIPS: add a common mips_sched_clock()
From: David Daney <ddaney@caviumnetworks.com>
Date: Mon, 01 Feb 2010 09:07:17 -0800
Cc: Ralf Baechle <ralf@linux-mips.org>, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
In-reply-to: <198fc72d92823547c9be132616fd2ebc2091ff39.1265022593.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <198fc72d92823547c9be132616fd2ebc2091ff39.1265022593.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Wu Zhangjin wrote:

+               "dmultu\t%[cnt],%[mult]\n\t"
+               "nor\t%[t1],$0,%[shift]\n\t"
+               "mfhi\t%[t2]\n\t"
+               "mflo\t%[t3]\n\t"
+               "dsll\t%[t2],%[t2],1\n\t"
+               "dsrlv\t%[rv],%[t3],%[shift]\n\t"
+               "dsllv\t%[t1],%[t2],%[t1]\n\t"

This is unlikely to work in 32-bit kernels.

David Daney

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