Rev 430 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 430 | Rev 458 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include <arch.h> |
32 | #include <arch.h> |
33 | #include <preemption.h> |
33 | #include <preemption.h> |
34 | #include <print.h> |
34 | #include <print.h> |
35 | #include <debug.h> |
35 | #include <debug.h> |
36 | 36 | ||
37 | #ifdef __SMP__ |
37 | #ifdef CONFIG_SMP |
38 | 38 | ||
39 | /** Initialize spinlock |
39 | /** Initialize spinlock |
40 | * |
40 | * |
41 | * Initialize spinlock. |
41 | * Initialize spinlock. |
42 | * |
42 | * |
Line 45... | Line 45... | ||
45 | void spinlock_initialize(spinlock_t *sl) |
45 | void spinlock_initialize(spinlock_t *sl) |
46 | { |
46 | { |
47 | sl->val = 0; |
47 | sl->val = 0; |
48 | } |
48 | } |
49 | 49 | ||
50 | #ifdef DEBUG_SPINLOCK |
50 | #ifdef CONFIG_DEBUG_SPINLOCK |
51 | /** Lock spinlock |
51 | /** Lock spinlock |
52 | * |
52 | * |
53 | * Lock spinlock. |
53 | * Lock spinlock. |
54 | * This version has limitted ability to report |
54 | * This version has limitted ability to report |
55 | * possible occurence of deadlock. |
55 | * possible occurence of deadlock. |