Commit 015498d5 authored by Steven Cole's avatar Steven Cole Committed by Arnaldo Carvalho de Melo

[PATCH] Use '#ifdef' to test for CONFIG options

parent a8f1c677
......@@ -118,7 +118,7 @@ int dragen2_cs8900_setup(struct net_device *dev)
static void init_hardware(void)
{
#if CONFIG_DIRECT_IO_ACCESS
#ifdef CONFIG_DIRECT_IO_ACCESS
SCR = 0x10; /* allow user access to internal registers */
#endif
......
......@@ -124,7 +124,7 @@ void machine_restart(char * __unused)
{
int i;
#if CONFIG_SMP
#ifdef CONFIG_SMP
smp_halt();
#endif
......
......@@ -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
#ifdef CONFIG_SMP
else
if (unlikely(kick) && task_running(rq, p) && (p->thread_info->cpu != smp_processor_id()))
smp_send_reschedule(p->thread_info->cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment