kernel: Reduce lock contention when processing ICIs

This commit is contained in:
Pawel Dziepak
2013-11-29 03:36:44 +01:00
parent e736a456ba
commit 3514fd77f7
3 changed files with 105 additions and 92 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ arch_cpu_idle(void)
static inline void
arch_cpu_pause(void)
{
asm volatile("pause");
asm volatile("pause" : : : "memory");
}
+2
View File
@@ -60,6 +60,8 @@ typedef struct cpu_ent {
bigtime_t last_kernel_time;
bigtime_t last_user_time;
int32 ici_counter;
// used in the kernel debugger
addr_t fault_handler;
addr_t fault_handler_stack_pointer;