Function report |
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 activity | Download SCCT | Chinese |
Name:housekeeping_setup
Proto:static int __init housekeeping_setup(char *str, enum hk_flags flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | str | |
| enum hk_flags | flags |
| 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") |
| 91 | Return 0 |
| 94 | alloc_bootmem_cpumask_var( & tmp) |
| 95 | If Not housekeeping_flags Then |
| 102 | pr_warn("Housekeeping: must include one present CPU, using boot CPU:%d\n", smp_processor_id()) |
| 107 | Else |
| 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) |
| 113 | pr_warn("Housekeeping: nohz_full= must match isolcpus=\n") |
| 116 | Return 0 |
| 121 | If flags & HK_FLAG_TICK && Not (housekeeping_flags & HK_FLAG_TICK) Then |
| 132 | housekeeping_flags |= flags |
| 136 | Return 1 |
| Name | Describe |
|---|---|
| housekeeping_nohz_full_setup | |
| housekeeping_isolcpus_setup |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |