LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2005, 10:01 AM   #1
beast
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
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
 
Old 08-01-2005, 10:19 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Kernel with SMP mburoff Linux - Newbie 2 12-11-2005 03:24 AM
how to compile the linux driver to support SMP kernel? beast Programming 1 08-01-2005 10:28 PM
Adding SMP support to kernel Shentar Linux - Newbie 1 02-16-2005 11:13 AM
smp support on Linux-2.4.22 kernel Pete M Linux - Newbie 1 10-05-2003 10:23 PM
How to disable SMP support in the Kernel? concoran Linux - General 3 10-23-2001 12:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration