Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 97d42d5 in mainline for kernel/generic/src/console/console.c


Ignore:
Timestamp:
2011-05-17T15:10:16Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
0a02653
Parents:
0d8a304
Message:

get rid of KLOG_LATENCY (thanks to the event notification unmask callback this is no longer needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    r0d8a304 r97d42d5  
    5555#define KLOG_PAGES    8
    5656#define KLOG_LENGTH   (KLOG_PAGES * PAGE_SIZE / sizeof(wchar_t))
    57 #define KLOG_LATENCY  8
    5857
    5958/** Kernel log cyclic buffer */
     
    165164        sysinfo_set_item_val("klog.faddr", NULL, (sysarg_t) faddr);
    166165        sysinfo_set_item_val("klog.pages", NULL, KLOG_PAGES);
    167 
     166       
    168167        event_set_unmask_callback(EVENT_KLOG, klog_update);
    169168       
     
    319318                klog_uspace++;
    320319       
    321         /* Check notify uspace to update */
    322         bool update;
    323         if ((klog_uspace > KLOG_LATENCY) || (ch == '\n'))
    324                 update = true;
    325         else
    326                 update = false;
    327        
    328320        spinlock_unlock(&klog_lock);
    329321       
    330         if (update)
     322        /* Force notification on newline */
     323        if (ch == '\n')
    331324                klog_update();
    332325}
Note: See TracChangeset for help on using the changeset viewer.