diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 16:44:29 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-05-09 16:44:29 -0400 |
commit | a0615764712672e852ee44aabfaaaa0911f4a7c3 (patch) | |
tree | 12300d760b5ed76d56689edab3c8417cb8abddeb /include | |
parent | d1f5f5e7f672ff07fbe2d5051c7360f8a89f7ddc (diff) |
Various changes that I don't want to lose, but the code does not work.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/queuelock.h | 5 | ||||
-rw-r--r-- | include/linux/sched_plugin.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/queuelock.h b/include/linux/queuelock.h index 6dac31c358..3fad15deab 100644 --- a/include/linux/queuelock.h +++ b/include/linux/queuelock.h | |||
@@ -71,7 +71,10 @@ static inline void queue_lock(queuelock_t *lock) | |||
71 | /* range limit*/ | 71 | /* range limit*/ |
72 | lock->spin_slot[me] %= NR_CPUS; | 72 | lock->spin_slot[me] %= NR_CPUS; |
73 | /* spin until you acquire the lock */ | 73 | /* spin until you acquire the lock */ |
74 | while (lock->slots[lock->spin_slot[me]].val == MUST_WAIT); | 74 | while (lock->slots[lock->spin_slot[me]].val == MUST_WAIT) |
75 | // rep_nop(); | ||
76 | ; | ||
77 | |||
75 | /* reset the lock */ | 78 | /* reset the lock */ |
76 | lock->slots[lock->spin_slot[me]].val = MUST_WAIT; | 79 | lock->slots[lock->spin_slot[me]].val = MUST_WAIT; |
77 | barrier(); | 80 | barrier(); |
diff --git a/include/linux/sched_plugin.h b/include/linux/sched_plugin.h index 512abfd163..9d0434d779 100644 --- a/include/linux/sched_plugin.h +++ b/include/linux/sched_plugin.h | |||
@@ -67,6 +67,7 @@ typedef long (*inherit_priority_t) (struct pi_semaphore *sem, | |||
67 | 67 | ||
68 | typedef long (*return_priority_t) (struct pi_semaphore *sem); | 68 | typedef long (*return_priority_t) (struct pi_semaphore *sem); |
69 | 69 | ||
70 | typedef long (*handle_prio_change_t) (struct task_struct *t); | ||
70 | 71 | ||
71 | 72 | ||
72 | /********************* sys call backends ********************/ | 73 | /********************* sys call backends ********************/ |
@@ -109,6 +110,7 @@ struct sched_plugin { | |||
109 | /* priority inheritance */ | 110 | /* priority inheritance */ |
110 | inherit_priority_t inherit_priority; | 111 | inherit_priority_t inherit_priority; |
111 | return_priority_t return_priority; | 112 | return_priority_t return_priority; |
113 | handle_prio_change_t handle_priority_change; | ||
112 | } __attribute__ ((__aligned__(SMP_CACHE_BYTES))); | 114 | } __attribute__ ((__aligned__(SMP_CACHE_BYTES))); |
113 | 115 | ||
114 | typedef struct sched_plugin sched_plugin_t; | 116 | typedef struct sched_plugin sched_plugin_t; |