Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:46:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Schedule polling if it's not already scheduled. It's safe to call even from* hotpath because even though kthread_queue_delayed_work takes worker->lock* spinlock that spinlock is never contended due to poll_scheduled atomic* preventing such competition.
Proto:static void psi_schedule_poll_work(struct psi_group *group, unsigned long delay)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct psi_group * | group | |
| unsigned long | delay |
| 561 | If atomic_cmpxchg( & poll_scheduled, 0, 1) != 0 Then Return |
| 571 | If Value is more likely to compile time(kworker) Then kthread_queue_delayed_work - queue the associated kthread work* after a delay |
| 573 | Else atomic_set( & poll_scheduled, 0) |
| Name | Describe |
|---|---|
| psi_poll_work | |
| psi_task_change |
| 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 |