Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273060
b: refs/heads/master
c: a34978c
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 40427a1 commit f2cc4c2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 48 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8c655d727ebfe78769b62a0349227d5a656e967
refs/heads/master: a34978cbd977ab62c744f63daacd9dc1474482be
38 changes: 37 additions & 1 deletion trunk/arch/um/include/asm/irqflags.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
#ifndef __UM_IRQFLAGS_H
#define __UM_IRQFLAGS_H

/* Empty for now */
extern int get_signals(void);
extern int set_signals(int enable);
extern void block_signals(void);
extern void unblock_signals(void);

static inline unsigned long arch_local_save_flags(void)
{
return get_signals();
}

static inline void arch_local_irq_restore(unsigned long flags)
{
set_signals(flags);
}

static inline void arch_local_irq_enable(void)
{
unblock_signals();
}

static inline void arch_local_irq_disable(void)
{
block_signals();
}

static inline unsigned long arch_local_irq_save(void)
{
unsigned long flags;
flags = arch_local_save_flags();
arch_local_irq_disable();
return flags;
}

static inline bool arch_irqs_disabled(void)
{
return arch_local_save_flags() == 0;
}

#endif
45 changes: 0 additions & 45 deletions trunk/arch/um/include/asm/system-um.h

This file was deleted.

4 changes: 3 additions & 1 deletion trunk/arch/x86/um/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <asm/cpufeature.h>
#include <asm/cmpxchg.h>
#include <asm/nops.h>
#include <asm/system-um.h>

#include <linux/kernel.h>
#include <linux/irqflags.h>
Expand Down Expand Up @@ -130,4 +129,7 @@ static inline void rdtsc_barrier(void)
alternative(ASM_NOP3, "lfence", X86_FEATURE_LFENCE_RDTSC);
}

extern void *_switch_to(void *prev, void *next, void *last);
#define switch_to(prev, next, last) prev = _switch_to(prev, next, last)

#endif

0 comments on commit f2cc4c2

Please sign in to comment.