Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
linux
Commits
015498d5
Commit
015498d5
authored
21 years ago
by
Steven Cole
Committed by
Arnaldo Carvalho de Melo
21 years ago
Browse files
Options
Download
Email Patches
Plain Diff
[PATCH] Use '#ifdef' to test for CONFIG options
parent
a8f1c677
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
arch/m68knommu/platform/68VZ328/de2/config.c
arch/m68knommu/platform/68VZ328/de2/config.c
+1
-1
arch/x86_64/kernel/reboot.c
arch/x86_64/kernel/reboot.c
+1
-1
kernel/sched.c
kernel/sched.c
+1
-1
No files found.
arch/m68knommu/platform/68VZ328/de2/config.c
View file @
015498d5
...
...
@@ -118,7 +118,7 @@ int dragen2_cs8900_setup(struct net_device *dev)
static
void
init_hardware
(
void
)
{
#if CONFIG_DIRECT_IO_ACCESS
#if
def
CONFIG_DIRECT_IO_ACCESS
SCR
=
0x10
;
/* allow user access to internal registers */
#endif
...
...
This diff is collapsed.
Click to expand it.
arch/x86_64/kernel/reboot.c
View file @
015498d5
...
...
@@ -124,7 +124,7 @@ void machine_restart(char * __unused)
{
int
i
;
#if CONFIG_SMP
#if
def
CONFIG_SMP
smp_halt
();
#endif
...
...
This diff is collapsed.
Click to expand it.
kernel/sched.c
View file @
015498d5
...
...
@@ -501,7 +501,7 @@ static int try_to_wake_up(task_t * p, unsigned int state, int sync, int kick)
}
success
=
1
;
}
#if CONFIG_SMP
#if
def
CONFIG_SMP
else
if
(
unlikely
(
kick
)
&&
task_running
(
rq
,
p
)
&&
(
p
->
thread_info
->
cpu
!=
smp_processor_id
()))
smp_send_reschedule
(
p
->
thread_info
->
cpu
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment