Changeset a2a00e8 in mainline for kernel/generic/src/console/cmd.c
- Timestamp:
- 2010-03-28T23:05:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07640dfd
- Parents:
- 34bba0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r34bba0e ra2a00e8 1027 1027 ipl_t ipl = interrupts_disable(); 1028 1028 spinlock_lock(&TASK->lock); 1029 uint64_t t0 = task_get_accounting(TASK); 1029 uint64_t ucycles, kcycles; 1030 uint64_t t0 = task_get_accounting(TASK, &ucycles, &kcycles); 1030 1031 spinlock_unlock(&TASK->lock); 1031 1032 interrupts_restore(ipl); … … 1038 1039 ipl = interrupts_disable(); 1039 1040 spinlock_lock(&TASK->lock); 1040 uint64_t dt = task_get_accounting(TASK ) - t0;1041 uint64_t dt = task_get_accounting(TASK, &ucycles, &kcycles) - t0; 1041 1042 spinlock_unlock(&TASK->lock); 1042 1043 interrupts_restore(ipl); … … 1080 1081 ipl_t ipl = interrupts_disable(); 1081 1082 spinlock_lock(&TASK->lock); 1082 uint64_t t0 = task_get_accounting(TASK); 1083 uint64_t ucycles, kcycles; 1084 uint64_t t0 = task_get_accounting(TASK, &ucycles, &kcycles); 1083 1085 spinlock_unlock(&TASK->lock); 1084 1086 interrupts_restore(ipl); … … 1091 1093 ipl = interrupts_disable(); 1092 1094 spinlock_lock(&TASK->lock); 1093 uint64_t dt = task_get_accounting(TASK ) - t0;1095 uint64_t dt = task_get_accounting(TASK, &ucycles, &kcycles) - t0; 1094 1096 spinlock_unlock(&TASK->lock); 1095 1097 interrupts_restore(ipl);
Note:
See TracChangeset
for help on using the changeset viewer.