diff options
Diffstat (limited to 'arch/blackfin/kernel/process.c')
-rw-r--r-- | arch/blackfin/kernel/process.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 5bf15125f0d6..023dc80af187 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c | |||
@@ -39,9 +39,6 @@ | |||
39 | #include <asm/blackfin.h> | 39 | #include <asm/blackfin.h> |
40 | #include <asm/fixed_code.h> | 40 | #include <asm/fixed_code.h> |
41 | 41 | ||
42 | #define LED_ON 0 | ||
43 | #define LED_OFF 1 | ||
44 | |||
45 | asmlinkage void ret_from_fork(void); | 42 | asmlinkage void ret_from_fork(void); |
46 | 43 | ||
47 | /* Points to the SDRAM backup memory for the stack that is currently in | 44 | /* Points to the SDRAM backup memory for the stack that is currently in |
@@ -70,32 +67,6 @@ void (*pm_power_off)(void) = NULL; | |||
70 | EXPORT_SYMBOL(pm_power_off); | 67 | EXPORT_SYMBOL(pm_power_off); |
71 | 68 | ||
72 | /* | 69 | /* |
73 | * We are using a different LED from the one used to indicate timer interrupt. | ||
74 | */ | ||
75 | #if defined(CONFIG_BFIN_IDLE_LED) | ||
76 | static inline void leds_switch(int flag) | ||
77 | { | ||
78 | unsigned short tmp = 0; | ||
79 | |||
80 | tmp = bfin_read_CONFIG_BFIN_IDLE_LED_PORT(); | ||
81 | SSYNC(); | ||
82 | |||
83 | if (flag == LED_ON) | ||
84 | tmp &= ~CONFIG_BFIN_IDLE_LED_PIN; /* light on */ | ||
85 | else | ||
86 | tmp |= CONFIG_BFIN_IDLE_LED_PIN; /* light off */ | ||
87 | |||
88 | bfin_write_CONFIG_BFIN_IDLE_LED_PORT(tmp); | ||
89 | SSYNC(); | ||
90 | |||
91 | } | ||
92 | #else | ||
93 | static inline void leds_switch(int flag) | ||
94 | { | ||
95 | } | ||
96 | #endif | ||
97 | |||
98 | /* | ||
99 | * The idle loop on BFIN | 70 | * The idle loop on BFIN |
100 | */ | 71 | */ |
101 | #ifdef CONFIG_IDLE_L1 | 72 | #ifdef CONFIG_IDLE_L1 |
@@ -106,12 +77,10 @@ void cpu_idle(void)__attribute__((l1_text)); | |||
106 | void default_idle(void) | 77 | void default_idle(void) |
107 | { | 78 | { |
108 | while (!need_resched()) { | 79 | while (!need_resched()) { |
109 | leds_switch(LED_OFF); | ||
110 | local_irq_disable(); | 80 | local_irq_disable(); |
111 | if (likely(!need_resched())) | 81 | if (likely(!need_resched())) |
112 | idle_with_irq_disabled(); | 82 | idle_with_irq_disabled(); |
113 | local_irq_enable(); | 83 | local_irq_enable(); |
114 | leds_switch(LED_ON); | ||
115 | } | 84 | } |
116 | } | 85 | } |
117 | 86 | ||
@@ -327,6 +296,7 @@ void finish_atomic_sections (struct pt_regs *regs) | |||
327 | } | 296 | } |
328 | 297 | ||
329 | #if defined(CONFIG_ACCESS_CHECK) | 298 | #if defined(CONFIG_ACCESS_CHECK) |
299 | /* Return 1 if access to memory range is OK, 0 otherwise */ | ||
330 | int _access_ok(unsigned long addr, unsigned long size) | 300 | int _access_ok(unsigned long addr, unsigned long size) |
331 | { | 301 | { |
332 | if (size == 0) | 302 | if (size == 0) |