<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 5 6 2 2 2 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='text-indent:4.5pt'><font size=1 color=navy
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>Green hand apology for the </span></font><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>unintended CC, I should
make this query personal.</span></font><font size=1 color=navy face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face=宋体><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=宋体><span style='font-size:10.0pt;
font-weight:bold'>发件人<span lang=EN-US>:</span></span></font></b><font size=2><span
lang=EN-US style='font-size:10.0pt'>
linux-arm-kernel-bounces@lists.infradead.org
[mailto:linux-arm-kernel-bounces@lists.infradead.org] </span></font><b><font
size=2><span style='font-size:10.0pt;font-weight:bold'>代表 </span></font></b><font
size=2><span style='font-size:10.0pt'>胡杨树<span lang=EN-US><br>
</span><b><span style='font-weight:bold'>发送时间<span lang=EN-US>:</span></span></b><span
lang=EN-US> <st1:chsdate IsROCDate="False" IsLunarDate="False" Day="19"
Month="1" Year="2010" w:st="on">2010<span lang=EN-US><span lang=EN-US>年1</span></span><span
lang=EN-US><span lang=EN-US>月19</span></span><span lang=EN-US><span
lang=EN-US>日</span></span></st1:chsdate> 21:38<br>
</span><b><span style='font-weight:bold'>收件人<span lang=EN-US>:</span></span></b><span
lang=EN-US> Alessandro Rubini<br>
</span><b><span style='font-weight:bold'>抄送<span lang=EN-US>:</span></span></b><span
lang=EN-US> linux-arm-kernel<br>
</span><b><span style='font-weight:bold'>主题<span lang=EN-US>:</span></span></b><span
lang=EN-US> Re: Query about loops_per_jiffy</span></span></font><span
lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face=宋体><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt'>Are you Alessandro Rubini of LINUX
DEVICE DRIVER?<o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><font size=1 color=black face="Arial Narrow"><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial Narrow";color:black'>------------------ Original ------------------<o:p></o:p></span></font></p>
</div>
<div>
<div id="menu_sender">
<p class=MsoNormal><b><font size=1 color=black face=宋体><span lang=EN-US
style='font-size:9.0pt;color:black;font-weight:bold'>From: </span></font></b><font
size=1 color=black><span lang=EN-US style='font-size:9.0pt;color:black'> "Alessandro
Rubini"<rubini-list@gnudd.com>;<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=1 color=black face=宋体><span lang=EN-US
style='font-size:9.0pt;color:black;font-weight:bold'>Date: </span></font></b><font
size=1 color=black><span lang=EN-US style='font-size:9.0pt;color:black'> Tue,
Jan 19, 2010 04:21 PM<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=1 color=black face=宋体><span lang=EN-US
style='font-size:9.0pt;color:black;font-weight:bold'>To: </span></font></b><font
size=1 color=black><span lang=EN-US style='font-size:9.0pt;color:black'> "914059751"<914059751@qq.com>;
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=1 color=black face=宋体><span lang=EN-US
style='font-size:9.0pt;color:black;font-weight:bold'>Cc: </span></font></b><font
size=1 color=black><span lang=EN-US style='font-size:9.0pt;color:black'> "linux-arm-kernel"<linux-arm-kernel@lists.infradead.org>;
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><b><font size=1 color=black face=宋体><span lang=EN-US
style='font-size:9.0pt;color:black;font-weight:bold'>Subject: </span></font></b><font
size=1 color=black><span lang=EN-US style='font-size:9.0pt;color:black'> Re:
Query about loops_per_jiffy<o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=宋体><span lang=EN-US
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face=宋体><span lang=EN-US
style='font-size:12.0pt;color:black'>> (loops_per_jiffy *
HZ)/1000,000 will give a BogoMips value.<br>
<br>
No, it will give a BogoLips (loops per second). A loop is two instructions,<br>
in ./arch/arm/lib/delay.S (function __delay) called by init/calibrate.c ..<br>
To have bogomips you need to multiply by two.<br>
<br>
> then why calibrate_delay do it like the following:<br>
> printk(KERN_CONT "%lu.%02lu BogoMIPS
(lpj=%lu)\n",<br>
>
loops_per_jiffy/(500000/HZ),<br>
>
(loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);<br>
<br>
It's correct, using normal integer aritmetics care.<br>
<br>
/alessandro<o:p></o:p></span></font></p>
</div>
</div>
</div>
</includetail>
</body>
</html>