On 3/6/07, my linux <my.linux.newbie@xxxxxxxxx> wrote:
if CONFIG_SMP is defined then you are in SMP mode else not in SMP mode.
#if defined(CONFIG_SMP)
then SMP mode
On 3/6/07, Prasad Joshi < prasadjoshi124@xxxxxxxxx> wrote:In kernel space ? In a kernel module ?On 3/6/07, my linux < my.linux.newbie@xxxxxxxxx> wrote:On 3/6/07, Rajat Jain < rajat.noida.india@xxxxxxxxx> wrote:On 3/6/07, my linux <my.linux.newbie@xxxxxxxxx> wrote:
> Hi,
>
> How can I know whether my machine booted with SMP and non-SMP kernel ? (
> from kernel space)
CONFIG_SMP?
I want to get it without accessing config file or proc.
uname -a may give you the answer you are looking for.
prasad@prasad-desktop:~/LinuxSrc/linux- 2.6.20$ uname -a
Linux prasad-desktop 2.6.20 #8 SMP Thu Feb 15 16:00:00 IST 2007 i686 GNU/Linux
if CONFIG_SMP is defined then you are in SMP mode else not in SMP mode.
#if defined(CONFIG_SMP)
then SMP mode
-mln