gpstates 216 drivers/cpufreq/powernv-cpufreq.c struct global_pstate_info *gpstates = policy->driver_data; gpstates 218 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx = 0; gpstates 219 drivers/cpufreq/powernv-cpufreq.c gpstates->elapsed_time = 0; gpstates 220 drivers/cpufreq/powernv-cpufreq.c gpstates->last_sampled_time = 0; gpstates 221 drivers/cpufreq/powernv-cpufreq.c gpstates->last_lpstate_idx = 0; gpstates 222 drivers/cpufreq/powernv-cpufreq.c gpstates->last_gpstate_idx = 0; gpstates 641 drivers/cpufreq/powernv-cpufreq.c static inline void queue_gpstate_timer(struct global_pstate_info *gpstates) gpstates 651 drivers/cpufreq/powernv-cpufreq.c if ((gpstates->elapsed_time + GPSTATE_TIMER_INTERVAL) gpstates 653 drivers/cpufreq/powernv-cpufreq.c timer_interval = MAX_RAMP_DOWN_TIME - gpstates->elapsed_time; gpstates 657 drivers/cpufreq/powernv-cpufreq.c mod_timer(&gpstates->timer, jiffies + msecs_to_jiffies(timer_interval)); gpstates 671 drivers/cpufreq/powernv-cpufreq.c struct global_pstate_info *gpstates = from_timer(gpstates, t, timer); gpstates 672 drivers/cpufreq/powernv-cpufreq.c struct cpufreq_policy *policy = gpstates->policy; gpstates 676 drivers/cpufreq/powernv-cpufreq.c - gpstates->last_sampled_time; gpstates 679 drivers/cpufreq/powernv-cpufreq.c if (!spin_trylock(&gpstates->gpstate_lock)) gpstates 686 drivers/cpufreq/powernv-cpufreq.c gpstates->timer.expires = jiffies + msecs_to_jiffies(1); gpstates 687 drivers/cpufreq/powernv-cpufreq.c add_timer_on(&gpstates->timer, cpumask_first(policy->cpus)); gpstates 688 drivers/cpufreq/powernv-cpufreq.c spin_unlock(&gpstates->gpstate_lock); gpstates 702 drivers/cpufreq/powernv-cpufreq.c spin_unlock(&gpstates->gpstate_lock); gpstates 706 drivers/cpufreq/powernv-cpufreq.c gpstates->last_sampled_time += time_diff; gpstates 707 drivers/cpufreq/powernv-cpufreq.c gpstates->elapsed_time += time_diff; gpstates 709 drivers/cpufreq/powernv-cpufreq.c if (gpstates->elapsed_time > MAX_RAMP_DOWN_TIME) { gpstates 713 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx = gpstate_idx; gpstates 716 drivers/cpufreq/powernv-cpufreq.c gpstate_idx = calc_global_pstate(gpstates->elapsed_time, gpstates 717 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx, gpstates 721 drivers/cpufreq/powernv-cpufreq.c gpstates->last_gpstate_idx = gpstate_idx; gpstates 722 drivers/cpufreq/powernv-cpufreq.c gpstates->last_lpstate_idx = lpstate_idx; gpstates 727 drivers/cpufreq/powernv-cpufreq.c if (gpstate_idx != gpstates->last_lpstate_idx) gpstates 728 drivers/cpufreq/powernv-cpufreq.c queue_gpstate_timer(gpstates); gpstates 731 drivers/cpufreq/powernv-cpufreq.c spin_unlock(&gpstates->gpstate_lock); gpstates 744 drivers/cpufreq/powernv-cpufreq.c struct global_pstate_info *gpstates = policy->driver_data; gpstates 761 drivers/cpufreq/powernv-cpufreq.c if (!gpstates) { gpstates 766 drivers/cpufreq/powernv-cpufreq.c spin_lock(&gpstates->gpstate_lock); gpstates 768 drivers/cpufreq/powernv-cpufreq.c if (!gpstates->last_sampled_time) { gpstates 770 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx = new_index; gpstates 774 drivers/cpufreq/powernv-cpufreq.c if (gpstates->last_gpstate_idx < new_index) { gpstates 775 drivers/cpufreq/powernv-cpufreq.c gpstates->elapsed_time += cur_msec - gpstates 776 drivers/cpufreq/powernv-cpufreq.c gpstates->last_sampled_time; gpstates 783 drivers/cpufreq/powernv-cpufreq.c if (gpstates->elapsed_time > MAX_RAMP_DOWN_TIME) { gpstates 785 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx = new_index; gpstates 789 drivers/cpufreq/powernv-cpufreq.c gpstate_idx = calc_global_pstate(gpstates->elapsed_time, gpstates 790 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx, gpstates 795 drivers/cpufreq/powernv-cpufreq.c gpstates->highest_lpstate_idx = new_index; gpstates 804 drivers/cpufreq/powernv-cpufreq.c queue_gpstate_timer(gpstates); gpstates 806 drivers/cpufreq/powernv-cpufreq.c del_timer_sync(&gpstates->timer); gpstates 810 drivers/cpufreq/powernv-cpufreq.c gpstates->last_sampled_time = cur_msec; gpstates 811 drivers/cpufreq/powernv-cpufreq.c gpstates->last_gpstate_idx = gpstate_idx; gpstates 812 drivers/cpufreq/powernv-cpufreq.c gpstates->last_lpstate_idx = new_index; gpstates 814 drivers/cpufreq/powernv-cpufreq.c spin_unlock(&gpstates->gpstate_lock); gpstates 830 drivers/cpufreq/powernv-cpufreq.c struct global_pstate_info *gpstates; gpstates 858 drivers/cpufreq/powernv-cpufreq.c gpstates = kzalloc(sizeof(*gpstates), GFP_KERNEL); gpstates 859 drivers/cpufreq/powernv-cpufreq.c if (!gpstates) gpstates 862 drivers/cpufreq/powernv-cpufreq.c policy->driver_data = gpstates; gpstates 865 drivers/cpufreq/powernv-cpufreq.c gpstates->policy = policy; gpstates 866 drivers/cpufreq/powernv-cpufreq.c timer_setup(&gpstates->timer, gpstate_timer_handler, gpstates 868 drivers/cpufreq/powernv-cpufreq.c gpstates->timer.expires = jiffies + gpstates 870 drivers/cpufreq/powernv-cpufreq.c spin_lock_init(&gpstates->gpstate_lock); gpstates 1006 drivers/cpufreq/powernv-cpufreq.c struct global_pstate_info *gpstates = policy->driver_data; gpstates 1011 drivers/cpufreq/powernv-cpufreq.c if (gpstates) gpstates 1012 drivers/cpufreq/powernv-cpufreq.c del_timer_sync(&gpstates->timer);