Commit 44d0f8c5 authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

s/#if/#ifdef/ for a few CONFIG_SMP tests in public headers

Headers touched: linux/interrupt.h, linux/sched.h, linux/timer.h
parent de8782f1
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
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