percpu safety policies and scoped pushcli/popcli around percpu access
These safety policies help ensure that an accessor does not migrate
CPUs while accessing a percpu variable. The "cli" safety policy only
allows percpu variables to be accessed when interrupts are disabled.
The "internal" safety policy leaves it up to the caller. Not
surprisingly, most current percpu variables use internal.
正在显示
请
注册
或者
登录
后发表评论