You are not logged in.

#1 2007-07-24 00:55:16

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

Hi all!

I am missing /proc/sys/dev/rtc/max-user-freq to set the maximum frequency that an user app can fetch the rtc device. It seems that there is a new implementation for the rtc driver since 2.6.21. Before that (don't remember exactly when) the /proc/... was there, but now it isn't. Does anybody know how can I achieve the same result with the newer kernels?

Thanks in advance

Denis Falqueto

Last edited by denisfalqueto (2007-07-27 16:24:49)


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#2 2007-07-24 01:27:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

You have to modprobe rtc to have that proc entry.

Offline

#3 2007-07-24 01:44:43

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

Yes, I did it, but it tells me the following:

FATAL: Error inserting rtc (/lib/modules/2.6.21-rt/kernel/drivers/char/rtc.ko): Input/output error

This kernel is from AUR, but with the ck it remains the same. Dmesg also tells me:

rtc: I/O resource 70 is not free.

It seems that there is something holding the rtc.

Some googling gave me some tips to build a kernel with the RTC compiled inside the kernel, not as a module, but I couldn't find the option in the menuconfig. I will try to rebuild this kernel with a manual configuration for the RTC.


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#4 2007-07-24 17:30:10

Mefju
Member
From: Poland
Registered: 2006-07-12
Posts: 104

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

It is in Device Drivers --> Character devices --> Enhanced Real Time Clock Support

Offline

#5 2007-07-25 13:27:11

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

Yes, it worked. I compiled the kernel with the realtime patch from Ingo Molnar from AUR and enabled the rtc as sugested above inside the kernel (not as a module). Now there is back again the /proc/sys/dev/rtc/max-user-freq.

I would suggest also to the kernel-ck maintainers to do the same for that we can use this interesting feature. I found that it can help lots of applications, for example, mplayer, cd/dvd-writing and even virtualization softwares like qemu. There are dozens of tips with that in google.


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#6 2007-07-26 04:11:59

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

denisfalqueto wrote:

Yes, I did it, but it tells me the following:

FATAL: Error inserting rtc (/lib/modules/2.6.21-rt/kernel/drivers/char/rtc.ko): Input/output error

This is caused because you've already got an rtc module modprobed - most likely rtc_cmos (which was inserted on my default setup.)

Offline

#7 2007-07-27 16:27:46

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: Where is /proc/sys/dev/rtc/max-user-freq? [SOLVED]

For the record, it was really rtc_cmos that was preventing rtc to be loaded. So, I configured rc.conf to forbid rtc_cmos and load rtc. Now the /proc/.... entry is back again.

Thanks to all!


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

Board footer

Powered by FluxBB