Searched refs:delta (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/src/sched/ |
H A D | cputime.rs | 41 pub fn account_delta(&mut self, delta: u64) { in account_delta() 44 self.total += delta; in account_delta() 45 self.tick_delta += delta; in account_delta() 49 let delta = self.tick_delta.min(max); in irqtime_tick_accounted() localVariable 50 self.tick_delta -= delta; in irqtime_tick_accounted() 51 return delta; in irqtime_tick_accounted() 67 let delta = SchedClock::sched_clock_cpu(cpu) as u64 - irq_time.irq_start_time; in irqtime_account_irq() localVariable 70 irq_time.account_delta(delta); in irqtime_account_irq()
|
H A D | pelt.rs | 59 let mut delta = now - self.last_update_time; in update_load_sum() localVariable 60 delta >>= 10; in update_load_sum() 62 if delta == 0 { in update_load_sum() 66 self.last_update_time += delta << 10; in update_load_sum() 73 self.accumulate_sum(delta, load, runnable, running) != 0 in update_load_sum() 78 mut delta: u64, in accumulate_sum() 83 let mut contrib = delta as u32; in accumulate_sum() 85 delta += self.period_contrib as u64; in accumulate_sum() 87 let periods = delta / 1024; in accumulate_sum() 94 delta %= 1024; in accumulate_sum() [all …]
|
H A D | mod.rs | 432 let delta = self.clock - sched_info.last_queued; in dequeue_task() localVariable 436 sched_info.run_delay += delta as usize; in dequeue_task() 438 self.sched_info.run_delay += delta as usize; in dequeue_task() 522 let delta = clock - self.clock; in update_rq_clock() localVariable 523 self.clock += delta; in update_rq_clock() 525 self.update_rq_clock_task(delta); in update_rq_clock() 529 pub fn update_rq_clock_task(&mut self, mut delta: u64) { in update_rq_clock_task() 541 if irq_delta > delta { in update_rq_clock_task() 542 irq_delta = delta; in update_rq_clock_task() 547 delta -= irq_delta; in update_rq_clock_task() [all …]
|
H A D | fair.rs | 186 pub fn calculate_delta_fair(&self, delta: u64) -> u64 { in calculate_delta_fair() 191 .calculate_delta(delta, LoadWeight::NICE_0_LOAD_SHIFT as u64); in calculate_delta_fair() 194 delta in calculate_delta_fair() 674 let delta = vruntime as i64 - min_vruntime as i64; in __update_min_vruntime() localVariable 675 if delta > 0 { in __update_min_vruntime() 676 self.avg_vruntime -= self.avg_load * delta; in __update_min_vruntime()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | tsc.rs | 166 let mut delta = tsc_pit_min * 100; in calibrate_cpu_by_pit_hpet_ptimer() localVariable 167 delta /= tsc_ref_min; in calibrate_cpu_by_pit_hpet_ptimer() 171 if (90..=110).contains(&delta) { in calibrate_cpu_by_pit_hpet_ptimer() 271 let delta = t2 - tsc; in pit_calibrate_tsc() localVariable 274 tscmin = min(tscmin, delta); in pit_calibrate_tsc() 275 tscmax = max(tscmax, delta); in pit_calibrate_tsc() 291 let mut delta = t2 - t1; in pit_calibrate_tsc() localVariable 292 delta /= ms; in pit_calibrate_tsc() 294 return Some(delta); in pit_calibrate_tsc()
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | acpi_pm.rs | 188 let delta = (value2 - value1) & ACPI_PM_MASK; in verify_pmtmr_rate() localVariable 190 if (delta < (PMTMR_EXPECTED_RATE * 19) / 20) || (delta > (PMTMR_EXPECTED_RATE * 21) / 20) { in verify_pmtmr_rate() 193 100 * delta / PMTMR_EXPECTED_RATE in verify_pmtmr_rate()
|
/DragonOS/kernel/src/time/ |
H A D | clocksource.rs | 493 pub fn set_unstable(&self, delta: i64) -> Result<i32, SystemError> { in set_unstable() 498 cs_data.name, delta in set_unstable()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 1312 pub fn update_free_count_delta(&mut self, delta: i32) { in update_free_count_delta() 1313 self.free_count = (self.free_count as i32 + delta) as u32; in update_free_count_delta()
|