Changeset 97d42d5 in mainline for kernel/generic/src/console/console.c
- Timestamp:
- 2011-05-17T15:10:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a02653
- Parents:
- 0d8a304
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
r0d8a304 r97d42d5 55 55 #define KLOG_PAGES 8 56 56 #define KLOG_LENGTH (KLOG_PAGES * PAGE_SIZE / sizeof(wchar_t)) 57 #define KLOG_LATENCY 858 57 59 58 /** Kernel log cyclic buffer */ … … 165 164 sysinfo_set_item_val("klog.faddr", NULL, (sysarg_t) faddr); 166 165 sysinfo_set_item_val("klog.pages", NULL, KLOG_PAGES); 167 166 168 167 event_set_unmask_callback(EVENT_KLOG, klog_update); 169 168 … … 319 318 klog_uspace++; 320 319 321 /* Check notify uspace to update */322 bool update;323 if ((klog_uspace > KLOG_LATENCY) || (ch == '\n'))324 update = true;325 else326 update = false;327 328 320 spinlock_unlock(&klog_lock); 329 321 330 if (update) 322 /* Force notification on newline */ 323 if (ch == '\n') 331 324 klog_update(); 332 325 }
Note:
See TracChangeset
for help on using the changeset viewer.