Changes in kernel/generic/src/mm/frame.c [905721b:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r905721b r9d58539 1086 1086 #endif 1087 1087 1088 /*1089 * Since the mem_avail_mtx is an active mutex, we need to disable interrupts1090 * to prevent deadlock with TLB shootdown.1091 */1092 ipl_t ipl = interrupts_disable();1093 1088 mutex_lock(&mem_avail_mtx); 1094 1089 … … 1103 1098 1104 1099 mutex_unlock(&mem_avail_mtx); 1105 interrupts_restore(ipl);1106 1100 1107 1101 #ifdef CONFIG_DEBUG … … 1167 1161 * Signal that some memory has been freed. 1168 1162 */ 1169 1170 1171 /*1172 * Since the mem_avail_mtx is an active mutex, we need to disable interrupts1173 * to prevent deadlock with TLB shootdown.1174 */1175 ipl_t ipl = interrupts_disable();1176 1163 mutex_lock(&mem_avail_mtx); 1177 1164 if (mem_avail_req > 0) … … 1183 1170 } 1184 1171 mutex_unlock(&mem_avail_mtx); 1185 interrupts_restore(ipl);1186 1172 1187 1173 if (!(flags & FRAME_NO_RESERVE))
Note:
See TracChangeset
for help on using the changeset viewer.