Skip to contentSkip to conversation

hwclock

parisc-linux Alex deVries 3 participants 3 messages Dec 19, 2000 – Dec 20, 2000

lore
Share & tools
lore
#0 lore raw

There's been some discussion on IRC about not always having to set the clock when in userspace. I had a quick look at it, and it shouldn't be too hard. We just need a parisc version of hwclock which calls the PDC_TOD functions.

It should be reasonably easy to get this going, so if someone's looking for an unintrusive and simple task, have a look at it.

hwclock is part of the ever-terrible utils-linux package, and you should be able to use hwclock-ppc.c as a starting point.

- Alex

Signature · 4 lines
Alex deVries, Principal Solutions Architect, The Puffins at Linuxcare
613.562.2759 tel
[email protected], http://www.linuxcare.com/
Linuxcare, Support for the revolution.
#1 lore raw
Quoted 4 lines · Alex deVries

There's been some discussion on IRC about not always having to set the clock when in userspace. I had a quick look at it, and it shouldn't be too hard. We just need a parisc version of hwclock which calls the PDC_TOD functions.

CONFIG_GENRTC in fact does use PDC_TOD.
Randolph Chung had hwclock working for PXC-L/L2 machines and I tested it on my c3k (32-bit) a few weeks back.
If it's broken, then it's a "recent" change.

grant

#2 lore raw
Quoted 10 lines · Grant Grundler
Quoted 4 lines · Alex deVries

There's been some discussion on IRC about not always having to set the clock when in userspace. I had a quick look at it, and it shouldn't be too hard. We just need a parisc version of hwclock which calls the PDC_TOD functions.

CONFIG_GENRTC in fact does use PDC_TOD.
Randolph Chung had hwclock working for PXC-L/L2 machines and I tested it on my c3k (32-bit) a few weeks back.
If it's broken, then it's a "recent" change.

Works for me on B180L (once I created /dev/rtc). Kernel source as of CVS 12 hours ago.

Richard