.. | .. |
---|
409 | 409 | return -ENODEV; |
---|
410 | 410 | |
---|
411 | 411 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) { |
---|
412 | | - /* |
---|
413 | | - * Use local_paca instead of get_lppaca() since |
---|
414 | | - * preemption is not disabled, and it is not required in |
---|
415 | | - * fact, since lppaca_ptr does not need to be the value |
---|
416 | | - * associated to the current CPU, it can be from any CPU. |
---|
417 | | - */ |
---|
418 | | - if (lppaca_shared_proc(local_paca->lppaca_ptr)) { |
---|
| 412 | + if (lppaca_shared_proc()) { |
---|
419 | 413 | cpuidle_state_table = shared_states; |
---|
420 | 414 | max_idle_state = ARRAY_SIZE(shared_states); |
---|
421 | 415 | } else { |
---|