Changeset fd3a631f in mainline
- Timestamp:
- 2010-06-12T00:01:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d6c497
- Parents:
- b584cd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
rb584cd4 rfd3a631f 53 53 #define LOAD_FIXED_SHIFT 11 54 54 55 /** Uspace load fixed-point precision */ 56 #define LOAD_USPACE_SHIFT 6 57 58 /** Kernel load shift */ 59 #define LOAD_KERNEL_SHIFT (LOAD_FIXED_SHIFT - LOAD_USPACE_SHIFT) 60 55 61 /** 1.0 as fixed-point for load */ 56 62 #define LOAD_FIXED_1 (1 << LOAD_FIXED_SHIFT) … … 713 719 unsigned int i; 714 720 for (i = 0; i < LOAD_STEPS; i++) 715 stats_load[i] = avenrdy[i] << LOAD_ FIXED_SHIFT;721 stats_load[i] = avenrdy[i] << LOAD_KERNEL_SHIFT; 716 722 717 723 mutex_unlock(&load_lock);
Note:
See TracChangeset
for help on using the changeset viewer.