Skip to content

Commit f6ac436

Browse files
masselstinetorvalds
authored andcommitted
Remove the deprecated cli() sti() functions
These functions have been deprecated for some time now but remained until all legacy callers could be removed. With a few commits in 2.6.26 this has happened so now we can remove these deprecated functions. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8cd6819 commit f6ac436

3 files changed

Lines changed: 0 additions & 164 deletions

File tree

‎Documentation/00-INDEX‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ cciss.txt
8989
- info, major/minor #'s for Compaq's SMART Array Controllers.
9090
cdrom/
9191
- directory with information on the CD-ROM drivers that Linux has.
92-
cli-sti-removal.txt
93-
- cli()/sti() removal guide.
9492
computone.txt
9593
- info on Computone Intelliport II/Plus Multiport Serial Driver.
9694
connector/

‎Documentation/cli-sti-removal.txt‎

Lines changed: 0 additions & 133 deletions
This file was deleted.

‎include/linux/interrupt.h‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -223,35 +223,6 @@ static inline int disable_irq_wake(unsigned int irq)
223223
#define or_softirq_pending(x) (local_softirq_pending() |= (x))
224224
#endif
225225

226-
/*
227-
* Temporary defines for UP kernels, until all code gets fixed.
228-
*/
229-
#ifndef CONFIG_SMP
230-
static inline void __deprecated cli(void)
231-
{
232-
local_irq_disable();
233-
}
234-
static inline void __deprecated sti(void)
235-
{
236-
local_irq_enable();
237-
}
238-
static inline void __deprecated save_flags(unsigned long *x)
239-
{
240-
local_save_flags(*x);
241-
}
242-
#define save_flags(x) save_flags(&x)
243-
static inline void __deprecated restore_flags(unsigned long x)
244-
{
245-
local_irq_restore(x);
246-
}
247-
248-
static inline void __deprecated save_and_cli(unsigned long *x)
249-
{
250-
local_irq_save(*x);
251-
}
252-
#define save_and_cli(x) save_and_cli(&x)
253-
#endif /* CONFIG_SMP */
254-
255226
/* Some architectures might implement lazy enabling/disabling of
256227
* interrupts. In some cases, such as stop_machine, we might want
257228
* to ensure that after a local_irq_disable(), interrupts have

0 commit comments

Comments
 (0)