From: "Michael Chang" <thenewme91@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: "Jan Engelhardt" <jengelh@computergmbh.de>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
rtc-linux@googlegroups.com
Subject: Re: rtc max frequency setting
Date: Sun, 5 Aug 2007 19:40:11 -0400 [thread overview]
Message-ID: <b14e81f00708051640i7a48b3d9oe4b8fa8d863cde1@mail.gmail.com> (raw)
In-Reply-To: <46B5148E.50302@zytor.com>
On 8/4/07, H. Peter Anvin <hpa@zytor.com> wrote:
> Jan Engelhardt wrote:
> > Hi,
> >
> > with the old rtc.ko module, there was a /proc/sys/dev/rtc/max-user-freq
> > that could be set. With rtc_cmos.ko (or the new rtc infrastructure in
> > general), I am missing this file. Where can I set the max-user-freq now,
> > or is this obsolete now? (mplayer prefers to have user-freq to be >= 1024.)
> >
>
> Qemu wants something like this too. Both of these really want something
> else, which is a high-frequency userspace timer.
For mplayer, you can use -softsleep, but that uses a lot of CPU, and
you're probably already using a great deal of CPU for video decoding,
so it might be less than optimal.
-softsleep
Time frames by repeatedly checking the current time instead of
asking the kernel to wake up MPlayer at the correct time. Useful if
your kernel timing is imprecise and you cannot use the RTC either.
Comes at the price of higher CPU consumption.
And apparently, the build of MPlayer[1] that I have doesn't need rtc,
except on slower machines, according to the man page:
-rtc (RTC only)
Turns on usage of the Linux RTC (realtime clock - /dev/rtc) as
timing mechanism. This wakes up the process every 1/1024 seconds to
check the current time. Useless with modern Linux kernels configured
for desktop use as they already wake up the process with similar
accuracy when using normal timed sleep.
[1] MPlayer dev-SVN-r23777-4.1.2 (C) 2000-2007 MPlayer Team
--
Michael Chang
Please avoid sending me Word or PowerPoint attachments. Send me ODT,
RTF, or HTML instead.
See http://www.gnu.org/philosophy/no-word-attachments.html
Thank you.
next prev parent reply other threads:[~2007-08-05 23:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 22:44 Jan Engelhardt
2007-08-05 0:06 ` H. Peter Anvin
2007-08-05 0:41 ` [rtc-linux] " Alessandro Zummo
2007-08-05 8:05 ` Jan Engelhardt
2007-08-05 23:40 ` Michael Chang [this message]
2007-08-06 19:01 ` [rtc-linux] " Alessandro Zummo
2007-08-10 4:40 ` Bill Davidsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b14e81f00708051640i7a48b3d9oe4b8fa8d863cde1@mail.gmail.com \
--to=thenewme91@gmail.com \
--cc=hpa@zytor.com \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®