lkml.org 
[lkml]   [1996]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Module Versioning Problems: How to "probe" for SMP
On Mon, 16 Sep 1996, Alan Cox wrote:

> > In an SMP kernel 'smp_num_cpus' is a _variable_, in non-SMP kernel it is
> > a '#define smp_num_cpus 1', it is neither in ksyms nor can it be
> > checked in a module or insmod.
> >
> > Really, it would be good to have it as _variable_ in both kernel types.
>
> No it wouldn't. Not from a compiler output and performance viewpoint. The
> bug is in the module stuff failing to discover a difference. We just need
> a way to help it along

Ah yes, we are knowing it's a bug, and the current discussion is _how_
either insmod or the modules can easily detect the type of the kernel.
( look at the subject ;-) )

Why not let say the kernel _what_ he is ?
If 'smp_num_cpus' shouldn't be a variable due to performance, well then
lets have a new one, which is only used for module purpose.
An alternative is to merge the info into UTS_VERSION or LINUX_COMPILE_*.

So long,
Hans
<lermen@fgan.de>


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