stopping the clock

stopping the clock

Post by Pasquale Ladi » Fri, 22 Nov 2002 23:43:26



Hi!
Don't ask me why, but i want to disable and stop the system time.
Every tick from the quartz the irq 0 is invoked.
The irq 0 increments the jiffies and the bottom half is marked.
The bottom half now sets xtime.
The scheduler don't needs the xtime, the system will run
without problems, if i stop counting the xtime.

Now i changed do_gettimeofday, do_settimeofday and update_wall_time in
order not to manipulate xtime.
After recompiling the kernel the system time is still running and
date() shows the right time.
Does somebody know which kernel function also sets xtime or is
accountable doing the system time ?

Thank you...
Pasqual

 
 
 

stopping the clock

Post by Sundial Service » Sat, 23 Nov 2002 00:33:59


Perhaps it would be easier, and perhaps :-) it would even be possible, to
arrange for the clock to /appear/ to be stopped, as viewed by a particular
application.  Without actually stopping the system-clock.

For example, the "date()" function could perhaps be overridden so that your
application, when compiled, does not call the "true" version of this
function ... does not actually interrogate the system clock, but works as
if it did.


> Hi!
> Don't ask me why, but i want to disable and stop the system time.
> Every tick from the quartz the irq 0 is invoked.
> The irq 0 increments the jiffies and the bottom half is marked.
> The bottom half now sets xtime.
> The scheduler don't needs the xtime, the system will run
> without problems, if i stop counting the xtime.

> Now i changed do_gettimeofday, do_settimeofday and update_wall_time in
> order not to manipulate xtime.
> After recompiling the kernel the system time is still running and
> date() shows the right time.
> Does somebody know which kernel function also sets xtime or is
> accountable doing the system time ?


 
 
 

stopping the clock

Post by Pasquale Ladi » Sat, 23 Nov 2002 00:57:58


Hi Sundial Services !

Quote:> Perhaps it would be easier, and perhaps :-) it would even be possible, to
> arrange for the clock to /appear/ to be stopped, as viewed by a particular
> application.  Without actually stopping the system-clock.

> For example, the "date()" function could perhaps be overridden so that
> your application, when compiled, does not call the "true" version of this
> function ... does not actually interrogate the system clock, but works as
> if it did.

I want to set the system clock by my own program.
If the ethernet card receives a packet, the xtime should increment
by one.
It is necessary to disable the system clock.
greets
Pasqual

>> Hi!
>> Don't ask me why, but i want to disable and stop the system time.
>> Every tick from the quartz the irq 0 is invoked.
>> The irq 0 increments the jiffies and the bottom half is marked.
>> The bottom half now sets xtime.
>> The scheduler don't needs the xtime, the system will run
>> without problems, if i stop counting the xtime.

>> Now i changed do_gettimeofday, do_settimeofday and update_wall_time in
>> order not to manipulate xtime.
>> After recompiling the kernel the system time is still running and
>> date() shows the right time.
>> Does somebody know which kernel function also sets xtime or is
>> accountable doing the system time ?

 
 
 

stopping the clock

Post by Sundial Service » Sat, 23 Nov 2002 01:22:39



> Hi Sundial Services !

>> Perhaps it would be easier, and perhaps :-) it would even be possible, to
>> arrange for the clock to /appear/ to be stopped, as viewed by a
>> particular
>> application.  Without actually stopping the system-clock.

>> For example, the "date()" function could perhaps be overridden so that
>> your application, when compiled, does not call the "true" version of this
>> function ... does not actually interrogate the system clock, but works as
>> if it did.

> I want to set the system clock by my own program.
> If the ethernet card receives a packet, the xtime should increment
> by one.
> It is necessary to disable the system clock.

Perhaps the "date()" function could add the "frozen in time" value to a
"count of ethernet packets recieved" value.
 
 
 

1. Power saving mode stops BIOS clock???

Hello,

I installed a new ethernet device last week. Something went
wrong: at reboot my BIOS complained that it had lost its settings.
I tried to fix that manually as well as I could but something
wierd remains.

After 1 to 2 minutes of inactivity my screen blanks and the thing
goes into hybernation or something. If I press a key, it will
come back to life VERY slowly (takes about 20 seconds to get the
monitor image back).

I used to have a situation were my screen would blank after 10
minutes (using setterm -blank). But even then it used to pop up
immediately, and the LED on monitor used to be green, but now
it's red/orange during the sleep. I did not change my setterm
settings. Besides this is a different power saving mode it seems.

Power saving is OK, you'll say, what's the prob?
Well... power saving seems to mean "stop system time".

Yes that's right folks, if I do "date" and then let it rest for
an hour, come back, re-activate and type "date" again, my clock
is 1 hour behind.

Anyone ever heard of something like this?

Regards,
        Harold

2. Help: Diamond Stealth 64 Video 2001 Series

3. Clock stops???

4. problems with awe64 and linux

5. Clock stops when computer goes to suspend?

6. HEELP!!!how to boot from floppy

7. clock stops dead on Miata

8. Q:How to add a second parallel port for RH6.0

9. Strange X problems (stopped clock?)

10. Green powerdown --> system clock stops!

11. Strange X problem (stopped clock?)

12. Clock stops.

13. clock stops, U5/10 Solaris 8