Re: [PATCH] Real-Time Preemption, using msecs_to_jiffies() instead of HZ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ingo Molnar ha scritto:
> oops, indeed. (i've also forwarded your patch to akpm, as the softlockup 
> patch is included in -mm too)

OK, thank you!


I also found another couple of those in drivers/char/rtc.c file.
Here is a quick fix:

--- ./rtp-2.6.12-rc6-V0.7.48-17.orig	2005-06-13 01:26:53.000000000 +0000
+++ ./rtp-2.6.12-rc6-V0.7.48-17		2005-06-13 01:58:13.000000000 +0000
@@ -17044,7 +17044,7 @@
 -			barrier();
 -			cpu_relax();
 -		}
-+		msleep(2*HZ/100);
++		msleep(20);
  	
  	spin_lock_irq(&rtc_lock);
  	year = CMOS_READ(RTC_YEAR);
@@ -17102,7 +17102,7 @@
 -			barrier();
 -			cpu_relax();
 -		}
-+		msleep(2*HZ/100);
++		msleep(20);

  	/*
  	 * Only the values that we read from the RTC are set. We leave

Regards,
-- 
					Luca

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux