get_lppaca
wait_cycles = be64_to_cpu(get_lppaca()->wait_state_cycles);
get_lppaca()->wait_state_cycles = cpu_to_be64(wait_cycles);
get_lppaca()->idle = 1;
get_lppaca()->idle = 0;
if (unlikely(get_lppaca()->idle == 1)) {
return be64_to_cpu(get_lppaca()->wait_state_cycles);
if (get_lppaca()->idle == 1) {
get_lppaca()->pmcregs_in_use = inuse;
get_lppaca()->l2_counters_enable;
struct lppaca *lp = get_lppaca();
return tb_to_ns(be64_to_cpu(get_lppaca()->l1_to_l2_cs_tb));
return tb_to_ns(be64_to_cpu(get_lppaca()->l2_to_l1_cs_tb));
return tb_to_ns(be64_to_cpu(get_lppaca()->l2_runtime_tb));
get_lppaca()->pmcregs_in_use = ppc_get_pmu_inuse();
get_lppaca()->pmcregs_in_use = load_pmu;
page_ins = be32_to_cpu(get_lppaca()->page_ins);
get_lppaca()->page_ins = cpu_to_be32(page_ins);
if (get_paca()->dtl_ridx != be64_to_cpu(get_lppaca()->dtl_idx))
if (get_lppaca()->dtl_enable_mask) {
get_lppaca()->donate_dedicated_cpu = 1;
old_latency_hint = get_lppaca()->cede_latency_hint;
get_lppaca()->cede_latency_hint = cede_latency_hint[index];
get_lppaca()->donate_dedicated_cpu = 0;
get_lppaca()->cede_latency_hint = old_latency_hint;