Function report | 
Source Code:kernel\stop_machine.c | 
Create Date:2022-07-28 11:21:09 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:cpu_stopper_thread
Proto:static void cpu_stopper_thread(unsigned int cpu)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | cpu | 
| 500 | stopper = per_cpu(cpu_stopper, cpu) | 
| 503 | repeat : | 
| 504 | work = NULL | 
| 505 | raw_spin_lock_irq( & lock) | 
| 511 | raw_spin_unlock_irq( & lock) | 
| 513 | If work Then | 
| 520 | preempt_count_inc() | 
| 522 | If done Then | 
| 523 | If ret Then collected return value = ret | 
| 527 | preempt_count_dec() | 
| 528 | WARN_ONCE(We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt., "cpu_stop: %ps(%p) leaked preempt count\n", fn, arg) | 
| 530 | Go to repeat | 
| 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  |