LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to compile the linux driver to support SMP kernel? (https://www.linuxquestions.org/questions/programming-9/how-to-compile-the-linux-driver-to-support-smp-kernel-348893/)

beast 08-01-2005 11:50 AM

how to compile the linux driver to support SMP kernel?
 
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,

crabboy 08-01-2005 10:28 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...hreadid=348866


All times are GMT -5. The time now is 12:53 AM.