Package: qemu Version: 0.6.1 Author: Guillem Jover Status: not-applied Description: Do not print warning if the current RTC frequency is ok. diff -Naur qemu-0.6.1.orig/vl.c qemu-0.6.1/vl.c --- qemu-0.6.1.orig/vl.c 2004-11-14 21:51:33.000000000 +0100 +++ qemu-0.6.1/vl.c 2004-11-27 19:03:44.000000000 +0100 @@ -852,10 +852,14 @@ static int start_rtc_timer(void) { + unsigned long current_rtc_freq = 0; + rtc_fd = open("/dev/rtc", O_RDONLY); if (rtc_fd < 0) return -1; - if (ioctl(rtc_fd, RTC_IRQP_SET, RTC_FREQ) < 0) { + ioctl(rtc_fd, RTC_IRQP_READ, ¤t_rtc_freq); + if (current_rtc_freq != RTC_FREQ && + ioctl(rtc_fd, RTC_IRQP_SET, RTC_FREQ) < 0) { fprintf(stderr, "Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal\n" "error, but for better emulation accuracy either use a 2.6 host Linux kernel or\n" "type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.\n");