Re: [PATCHSET] Announce: High-res timers, tickless/dyntick and dynamicHZ

From: Michal Piotrowski
Date: Sun Jun 18 2006 - 12:42:04 EST


Hi Thomas,

Thomas Gleixner napisał(a):
> We are pleased to announce the 2.6.17 based release of our high-res
> timers kernel feature, upon which we based a tickless kernel (dyntick)
> implementation and a 'dynamic HZ' feature as well:
>
> http://www.tglx.de/projects/hrtimers/2.6.17/
>
[snip]

I get a lot of

WARNING: /lib/modules/2.6.17-hrt-dyntick1/kernel/sound/pci/ac97/snd-ac97-codec.ko needs unknown symbol msecs_to_jiffies
WARNING: /lib/modules/2.6.17-hrt-dyntick1/kernel/drivers/net/skge.ko needs unknown symbol jiffies_to_msecs
WARNING: /lib/modules/2.6.17-hrt-dyntick1/kernel/drivers/cpufreq/cpufreq_ondemand.ko needs unknown symbol jiffies_to_usecs
etc...

warnings.

Here is fix small fix.

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/

diff -uprN -X linux-work/Documentation/dontdiff linux-work-clean/kernel/time.c linux-work/kernel/time.c
--- linux-work-clean/kernel/time.c 2006-06-18 18:16:29.000000000 +0200
+++ linux-work/kernel/time.c 2006-06-18 18:25:42.000000000 +0200
@@ -660,6 +660,8 @@ unsigned int jiffies_to_msecs(const unsi
#endif
}

+EXPORT_SYMBOL(jiffies_to_msecs);
+
unsigned int jiffies_to_usecs(const unsigned long j)
{
#if HZ <= USEC_PER_SEC && !(USEC_PER_SEC % HZ)
@@ -671,6 +673,8 @@ unsigned int jiffies_to_usecs(const unsi
#endif
}

+EXPORT_SYMBOL(jiffies_to_usecs);
+
/*
* When we convert to jiffies then we interpret incoming values
* the following way:
@@ -724,6 +728,9 @@ unsigned long msecs_to_jiffies(const uns
return (m * HZ + MSEC_PER_SEC - 1) / MSEC_PER_SEC;
#endif
}
+
+EXPORT_SYMBOL(msecs_to_jiffies);
+
unsigned long usecs_to_jiffies(const unsigned int u)
{
if (u > jiffies_to_usecs(MAX_JIFFY_OFFSET))
@@ -737,6 +744,8 @@ unsigned long usecs_to_jiffies(const uns
#endif
}

+EXPORT_SYMBOL(usecs_to_jiffies);
+
/*
* The TICK_NSEC - 1 rounds up the value to the next resolution. Note
* that a remainder subtract here would not do the right thing as the
@@ -830,6 +839,8 @@ clock_t jiffies_to_clock_t(long x)
#endif
}

+EXPORT_SYMBOL(jiffies_to_clock_t);
+
unsigned long clock_t_to_jiffies(unsigned long x)
{
#if (HZ % USER_HZ)==0
@@ -850,6 +861,8 @@ unsigned long clock_t_to_jiffies(unsigne
#endif
}

+EXPORT_SYMBOL(clock_t_to_jiffies);
+
u64 jiffies_64_to_clock_t(u64 x)
{
#if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/