Re: Module Versioning Problems: How to "probe" for SMP

Alan Cox (alan@cymru.net)
Mon, 16 Sep 1996 15:25:21 +0100 (BST)


> 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