<html 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=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m on a project where I recently switched from BSD
style timers (setitimer/getitimer) to POSIX style timers (timer_settime/timer_gettime)
so I can use the timer_getoverrun function. This works fine, except that
now on my embedded PPC platform changing the system time with either
settimeofday or clock_settime has an effect on relative timers, which according
to POSIX shouldn’t happen. The same code works fine on the x86
platforms I’ve tested on; I only see the problem on my PPC machine.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve also tried using CLOCK_MONOTONIC instead of
CLOCK_REALTIME, but that does not seem to be supported on my platform either.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m using:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>An MPC8270 processor<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>A 2.6.17.6 kernel<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>librt ver. 2.3.5<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>libc ver. 2.3.5<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>g++ 4.0 targeting powerpc-linux<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Is this a known problem? Is there a patch or a later kernel
that would correct this problem?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also, is this the right place to be asking this question,
and if not could anyone suggest a better forum?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any help or advice would be greatly appreciated.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks in advance,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><b><font size=1
color=gray face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:gray;font-weight:bold'>Logan</span></font></b></st1:place></st1:City><b><font
size=1 color=gray face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:gray;font-weight:bold'> Ratner </span></font></b><font size=1 color=gray
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:gray'>|
Software Engineer | Rosemount Analytical</span></font><o:p></o:p></p>
<p class=MsoNormal><b><font size=1 color=gray face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:gray;font-weight:bold'>Emerson
Process Management </span></font></b><font size=1 color=gray face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:gray'>| <st1:Street w:st="on"><st1:address
w:st="on">5650 Brittmoore Rd</st1:address></st1:Street> | <st1:City w:st="on">Houston</st1:City>
| TX | 77041 | <st1:country-region w:st="on"><st1:place w:st="on">USA</st1:place></st1:country-region><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=gray face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:gray'>T +1 713 839 9656 | F +1 713 827 3807<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=gray face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:gray'>Logan.Ratner@Emerson.com</span></font><font
color=gray><span style='color:gray'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>