lkml.org 
[lkml]   [1997]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.26 and CONFIG_APM
Date
Hi hackers

linux-2.1.26/arch/i386/kernel/time.c doesn't compile, if CONFIG_APM is set.
Possible Fix (seems to work here):
--- linux-2.1.26/arch/i386/kernel/time.c~ Mon Feb 10 11:19:48 1997
+++ linux-2.1.26/arch/i386/kernel/time.c Mon Feb 10 11:19:56 1997
@@ -265,12 +265,14 @@
*tv = xtime;
tv->tv_usec += do_gettimeoffset();

+#ifndef CONFIG_APM
/*
* xtime is atomically updated in timer_bh. lost_ticks is
* nonzero if the timer bottom half hasnt executed yet.
*/
if (lost_ticks)
tv->tv_usec += USECS_PER_JIFFY;
+#endif

restore_flags(flags);

Bye, Jojo
email:
work SCHMITZ_JOACHIM@Tandem.COM
home Joachim_Schmitz@D.maus.de

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.028 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site