Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cputime.c Create Date:2022-07-28 09:37:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Account multiple ticks of idle time.*@ticks: number of stolen ticks

Proto:void account_idle_ticks(unsigned long ticks)

Type:void

Parameter:

TypeParameterName
unsigned longticks
510  If SPDX-License-Identifier: GPL-2.0-only Then
511  irqtime_account_idle_ticks(ticks)
512  Return
515  cputime = ticks * TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ
516  steal = When a guest is interrupted for a longer amount of time, missed clock* ticks are not redelivered later. Due to that, this function may on* occasion account more time than the calling functions think elapsed.
518  If steal >= cputime Then Return
521  cputime -= steal
522  Account for idle time.*@cputime: the CPU time spent in idle wait