diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
| -rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 93eb5cbcc1f6..c087347d6688 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
| @@ -403,8 +403,8 @@ static ssize_t store_sampling_down_factor(struct dbs_data *dbs_data, | |||
| 403 | return count; | 403 | return count; |
| 404 | } | 404 | } |
| 405 | 405 | ||
| 406 | static ssize_t store_ignore_nice(struct dbs_data *dbs_data, const char *buf, | 406 | static ssize_t store_ignore_nice_load(struct dbs_data *dbs_data, |
| 407 | size_t count) | 407 | const char *buf, size_t count) |
| 408 | { | 408 | { |
| 409 | struct od_dbs_tuners *od_tuners = dbs_data->tuners; | 409 | struct od_dbs_tuners *od_tuners = dbs_data->tuners; |
| 410 | unsigned int input; | 410 | unsigned int input; |
| @@ -419,10 +419,10 @@ static ssize_t store_ignore_nice(struct dbs_data *dbs_data, const char *buf, | |||
| 419 | if (input > 1) | 419 | if (input > 1) |
| 420 | input = 1; | 420 | input = 1; |
| 421 | 421 | ||
| 422 | if (input == od_tuners->ignore_nice) { /* nothing to do */ | 422 | if (input == od_tuners->ignore_nice_load) { /* nothing to do */ |
| 423 | return count; | 423 | return count; |
| 424 | } | 424 | } |
| 425 | od_tuners->ignore_nice = input; | 425 | od_tuners->ignore_nice_load = input; |
| 426 | 426 | ||
| 427 | /* we need to re-evaluate prev_cpu_idle */ | 427 | /* we need to re-evaluate prev_cpu_idle */ |
| 428 | for_each_online_cpu(j) { | 428 | for_each_online_cpu(j) { |
| @@ -430,7 +430,7 @@ static ssize_t store_ignore_nice(struct dbs_data *dbs_data, const char *buf, | |||
| 430 | dbs_info = &per_cpu(od_cpu_dbs_info, j); | 430 | dbs_info = &per_cpu(od_cpu_dbs_info, j); |
| 431 | dbs_info->cdbs.prev_cpu_idle = get_cpu_idle_time(j, | 431 | dbs_info->cdbs.prev_cpu_idle = get_cpu_idle_time(j, |
| 432 | &dbs_info->cdbs.prev_cpu_wall, od_tuners->io_is_busy); | 432 | &dbs_info->cdbs.prev_cpu_wall, od_tuners->io_is_busy); |
| 433 | if (od_tuners->ignore_nice) | 433 | if (od_tuners->ignore_nice_load) |
| 434 | dbs_info->cdbs.prev_cpu_nice = | 434 | dbs_info->cdbs.prev_cpu_nice = |
| 435 | kcpustat_cpu(j).cpustat[CPUTIME_NICE]; | 435 | kcpustat_cpu(j).cpustat[CPUTIME_NICE]; |
| 436 | 436 | ||
| @@ -461,7 +461,7 @@ show_store_one(od, sampling_rate); | |||
| 461 | show_store_one(od, io_is_busy); | 461 | show_store_one(od, io_is_busy); |
| 462 | show_store_one(od, up_threshold); | 462 | show_store_one(od, up_threshold); |
| 463 | show_store_one(od, sampling_down_factor); | 463 | show_store_one(od, sampling_down_factor); |
| 464 | show_store_one(od, ignore_nice); | 464 | show_store_one(od, ignore_nice_load); |
| 465 | show_store_one(od, powersave_bias); | 465 | show_store_one(od, powersave_bias); |
| 466 | declare_show_sampling_rate_min(od); | 466 | declare_show_sampling_rate_min(od); |
| 467 | 467 | ||
| @@ -469,7 +469,7 @@ gov_sys_pol_attr_rw(sampling_rate); | |||
| 469 | gov_sys_pol_attr_rw(io_is_busy); | 469 | gov_sys_pol_attr_rw(io_is_busy); |
| 470 | gov_sys_pol_attr_rw(up_threshold); | 470 | gov_sys_pol_attr_rw(up_threshold); |
| 471 | gov_sys_pol_attr_rw(sampling_down_factor); | 471 | gov_sys_pol_attr_rw(sampling_down_factor); |
| 472 | gov_sys_pol_attr_rw(ignore_nice); | 472 | gov_sys_pol_attr_rw(ignore_nice_load); |
| 473 | gov_sys_pol_attr_rw(powersave_bias); | 473 | gov_sys_pol_attr_rw(powersave_bias); |
| 474 | gov_sys_pol_attr_ro(sampling_rate_min); | 474 | gov_sys_pol_attr_ro(sampling_rate_min); |
| 475 | 475 | ||
| @@ -478,7 +478,7 @@ static struct attribute *dbs_attributes_gov_sys[] = { | |||
| 478 | &sampling_rate_gov_sys.attr, | 478 | &sampling_rate_gov_sys.attr, |
| 479 | &up_threshold_gov_sys.attr, | 479 | &up_threshold_gov_sys.attr, |
| 480 | &sampling_down_factor_gov_sys.attr, | 480 | &sampling_down_factor_gov_sys.attr, |
| 481 | &ignore_nice_gov_sys.attr, | 481 | &ignore_nice_load_gov_sys.attr, |
| 482 | &powersave_bias_gov_sys.attr, | 482 | &powersave_bias_gov_sys.attr, |
| 483 | &io_is_busy_gov_sys.attr, | 483 | &io_is_busy_gov_sys.attr, |
| 484 | NULL | 484 | NULL |
| @@ -494,7 +494,7 @@ static struct attribute *dbs_attributes_gov_pol[] = { | |||
| 494 | &sampling_rate_gov_pol.attr, | 494 | &sampling_rate_gov_pol.attr, |
| 495 | &up_threshold_gov_pol.attr, | 495 | &up_threshold_gov_pol.attr, |
| 496 | &sampling_down_factor_gov_pol.attr, | 496 | &sampling_down_factor_gov_pol.attr, |
| 497 | &ignore_nice_gov_pol.attr, | 497 | &ignore_nice_load_gov_pol.attr, |
| 498 | &powersave_bias_gov_pol.attr, | 498 | &powersave_bias_gov_pol.attr, |
| 499 | &io_is_busy_gov_pol.attr, | 499 | &io_is_busy_gov_pol.attr, |
| 500 | NULL | 500 | NULL |
| @@ -544,7 +544,7 @@ static int od_init(struct dbs_data *dbs_data) | |||
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | tuners->sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR; | 546 | tuners->sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR; |
| 547 | tuners->ignore_nice = 0; | 547 | tuners->ignore_nice_load = 0; |
| 548 | tuners->powersave_bias = default_powersave_bias; | 548 | tuners->powersave_bias = default_powersave_bias; |
| 549 | tuners->io_is_busy = should_io_be_busy(); | 549 | tuners->io_is_busy = should_io_be_busy(); |
| 550 | 550 | ||
