Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\kyber-iosched.c Create Date:2022-07-28 17:52:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_latency_sample

Proto:static void add_latency_sample(struct kyber_cpu_latency *cpu_latency, unsigned int sched_domain, unsigned int type, u64 target, u64 latency)

Type:void

Parameter:

TypeParameterName
struct kyber_cpu_latency *cpu_latency
unsigned intsched_domain
unsigned inttype
u64target
u64latency
624  If latency > 0 Then
625  divisor = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, target >> KYBER_LATENCY_SHIFT, 1)
626  bucket = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof, KYBER_LATENCY_BUCKETS - 1)
628  Else
629  bucket = 0
632  atomic_inc( & buckets[sched_domain][type][bucket])
Caller
NameDescribe
kyber_completed_request