how to compile the linux driver to support SMP kernel
dear all:
how to compile the linux driver to support SMP kernel?
i found 2 ways:
1. add following macro at the begining of your driver file:
#ifdef CONFIG_SMP
#define __SMP__
#endif
2. or add it in makefile:
ifdef CONFIG_SMP
CFLAGS +=-D__SMP__ -DSMP
endif
my question is , is only 1 or only 2 enough ? or both 1 and 2 is necessary?
i am a flesh man to program linux driver. please help me /
thanks
beast
|