diff options
| author | David S. Miller <davem@nuts.ninka.net> | 2002-07-22 06:34:05 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2002-07-22 06:34:05 -0700 |
| commit | d0c91cb7127b4a086c04257ce827686cb7bbbdb3 (patch) | |
| tree | cbc1f210c13cf11cc6bece095c6ffcbcb9094cb5 /include/linux/interrupt.h | |
| parent | f153b55b58a10aa573bfa63f76d11e295d7294c4 (diff) | |
| parent | b43e708b4a1692618184cc1ee5edaedf81904df0 (diff) | |
Merge nuts.ninka.net:/home/davem/src/BK/BAK-net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
Diffstat (limited to 'include/linux/interrupt.h')
| -rw-r--r-- | include/linux/interrupt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 3870d26066e9..09e6b86ee763 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -44,6 +44,16 @@ enum { #include <asm/hardirq.h> #include <asm/softirq.h> +/* + * Temporary defines for UP kernels, until all code gets fixed. + */ +#if !CONFIG_SMP +# define cli() local_irq_disable() +# define sti() local_irq_enable() +# define save_flags(x) local_irq_save(x) +# define restore_flags(x) local_irq_restore(x) +# define save_and_cli(x) local_irq_save_off(x) +#endif /* PLEASE, avoid to allocate new softirqs, if you need not _really_ high |
