Changeset e7f2ad68 in mainline for kernel/arch/ia64/src/ia64.c
- Timestamp:
- 2009-02-15T13:57:29Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee06f2a
- Parents:
- 826a4e8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ia64.c
r826a4e8d re7f2ad68 149 149 } 150 150 151 152 #ifdef I460GX153 #define POLL_INTERVAL 50000 /* 50 ms */154 /** Kernel thread for polling keyboard. */155 static void i8042_kkbdpoll(void *arg)156 {157 while (1) {158 #ifdef CONFIG_NS16550159 #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN160 ns16550_poll();161 #endif162 #else163 #ifndef CONFIG_I8042_INTERRUPT_DRIVEN164 i8042_poll();165 #endif166 #endif167 thread_usleep(POLL_INTERVAL);168 }169 }170 #endif171 172 151 void arch_post_smp_init(void) 173 152 { 174 thread_t *t;175 176 153 /* 177 154 * Create thread that polls keyboard. 178 155 */ 179 156 #ifdef SKI 180 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);157 thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); 181 158 if (!t) 182 159 panic("Cannot create kkbdpoll."); … … 193 170 i8042_init(kbd, IRQ_KBD, mouse, IRQ_MOUSE); 194 171 #endif 195 t = thread_create(i8042_kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);196 if (!t)197 panic("Cannot create kkbdpoll.");198 thread_ready(t);199 172 #endif 200 173
Note:
See TracChangeset
for help on using the changeset viewer.