diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2003-04-25 13:41:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-25 13:41:02 -0400 |
| commit | 44d0f8c5396507a621696fa59c80d8c6da336b50 (patch) | |
| tree | d3982a14c7a7e4a1768eb7c002411230b81d26dc /include/linux | |
| parent | de8782f18fe29d1be6128e74d69e59a75508e0e9 (diff) | |
s/#if/#ifdef/ for a few CONFIG_SMP tests in public headers
Headers touched: linux/interrupt.h, linux/sched.h, linux/timer.h
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/interrupt.h | 2 | ||||
| -rw-r--r-- | include/linux/sched.h | 2 | ||||
| -rw-r--r-- | include/linux/timer.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 08011cd5f6d5..503c72da8c47 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -49,7 +49,7 @@ extern void free_irq(unsigned int, void *); /* * Temporary defines for UP kernels, until all code gets fixed. */ -#if !CONFIG_SMP +#ifndef CONFIG_SMP # define cli() local_irq_disable() # define sti() local_irq_enable() # define save_flags(x) local_save_flags(x) diff --git a/include/linux/sched.h b/include/linux/sched.h index eee58c7354b4..ca3c22f974c2 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -467,7 +467,7 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0) #define PF_KSWAPD 0x00040000 /* I am kswapd */ #define PF_SWAPOFF 0x00080000 /* I am in swapoff */ -#if CONFIG_SMP +#ifdef CONFIG_SMP extern void set_cpus_allowed(task_t *p, unsigned long new_mask); #else # define set_cpus_allowed(p, new_mask) do { } while (0) diff --git a/include/linux/timer.h b/include/linux/timer.h index 64196d3c48cd..d98c9a948aa7 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -65,7 +65,7 @@ extern void add_timer_on(struct timer_list *timer, int cpu); extern int del_timer(struct timer_list * timer); extern int mod_timer(struct timer_list *timer, unsigned long expires); -#if CONFIG_SMP +#ifdef CONFIG_SMP extern int del_timer_sync(struct timer_list * timer); #else # define del_timer_sync(t) del_timer(t) |
