Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:housekeeping_setup

Proto:static int __init housekeeping_setup(char *str, enum hk_flags flags)

Type:int

Parameter:

TypeParameterName
char *str
enum hk_flagsflags
86  alloc_bootmem_cpumask_var( & non_housekeeping_mask)
87  err = pulist_parse - extract a cpumask from a user string of ranges*@buf: the buffer to extract from*@dstp: the cpumask to set.* Returns -errno, or 0 for success.
88  If err < 0 || cpumask_last(non_housekeeping_mask) >= nr_cpu_ids Then
89  pr_warn("Housekeeping: nohz_full= or isolcpus= incorrect CPU range\n")
90  free_bootmem_cpumask_var(non_housekeeping_mask)
91  Return 0
94  alloc_bootmem_cpumask_var( & tmp)
95  If Not housekeeping_flags Then
96  alloc_bootmem_cpumask_var( & housekeeping_mask)
97  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
100  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
102  pr_warn("Housekeeping: must include one present CPU, using boot CPU:%d\n", smp_processor_id())
107  Else
108  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
109  If pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then __cpumask_clear_cpu(smp_processor_id(), non_housekeeping_mask)
111  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
113  pr_warn("Housekeeping: nohz_full= must match isolcpus=\n")
116  Return 0
119  free_bootmem_cpumask_var(tmp)
121  If flags & HK_FLAG_TICK && Not (housekeeping_flags & HK_FLAG_TICK) Then
124  Else
125  pr_warn("Housekeeping: nohz unsupported. Build with CONFIG_NO_HZ_FULL\n")
128  Return 0
132  housekeeping_flags |= flags
134  free_bootmem_cpumask_var(non_housekeeping_mask)
136  Return 1
Caller
NameDescribe
housekeeping_nohz_full_setup
housekeeping_isolcpus_setup