Print this page
XXXX pass in cpu_pause_func via pause_cpus
*** 394,404 ****
* Pause all other CPUs (and let them run pause thread).
* It's guaranteed that no other threads will access cpu_idle_cb_array
* after pause_cpus().
*/
if (!cpus_paused()) {
! pause_cpus(NULL);
unpause = 1;
}
/* Copy content to new buffer if needed. */
if (buf_new != NULL) {
--- 394,404 ----
* Pause all other CPUs (and let them run pause thread).
* It's guaranteed that no other threads will access cpu_idle_cb_array
* after pause_cpus().
*/
if (!cpus_paused()) {
! pause_cpus(NULL, NULL);
unpause = 1;
}
/* Copy content to new buffer if needed. */
if (buf_new != NULL) {
*** 460,470 ****
* Pause all other CPUs.
* It's guaranteed that no other threads will access cpu_idle_cb_array
* after pause_cpus().
*/
if (!cpus_paused()) {
! pause_cpus(NULL);
unpause = 1;
}
/* Remove cip from array. */
for (i = 0; i < cpu_idle_cb_curr; i++) {
--- 460,470 ----
* Pause all other CPUs.
* It's guaranteed that no other threads will access cpu_idle_cb_array
* after pause_cpus().
*/
if (!cpus_paused()) {
! pause_cpus(NULL, NULL);
unpause = 1;
}
/* Remove cip from array. */
for (i = 0; i < cpu_idle_cb_curr; i++) {