diff options
author | Stratos Karafotis <stratosk@semaphore.gr> | 2014-07-18 11:37:23 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-21 07:43:18 -0400 |
commit | c410833a3c96b325c68987c2544becad39079c33 (patch) | |
tree | bd11eb93ffda08a09136b41d287c6600208741b2 /drivers/cpufreq | |
parent | abf013bffeb55744fb6d1ff9bb30acaabe6302ab (diff) |
cpufreq: intel_pstate: Align multiple lines to open parenthesis
Suppress checkpatch.pl --strict warnings:
CHECK: Alignment should match open parenthesis
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index e0ed078988c5..9d75bd6faf65 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -147,7 +147,7 @@ static struct perf_limits limits = { | |||
147 | }; | 147 | }; |
148 | 148 | ||
149 | static inline void pid_reset(struct _pid *pid, int setpoint, int busy, | 149 | static inline void pid_reset(struct _pid *pid, int setpoint, int busy, |
150 | int deadband, int integral) { | 150 | int deadband, int integral) { |
151 | pid->setpoint = setpoint; | 151 | pid->setpoint = setpoint; |
152 | pid->deadband = deadband; | 152 | pid->deadband = deadband; |
153 | pid->integral = int_tofp(integral); | 153 | pid->integral = int_tofp(integral); |
@@ -258,8 +258,8 @@ static void __init intel_pstate_debug_expose_params(void) | |||
258 | return; | 258 | return; |
259 | while (pid_files[i].name) { | 259 | while (pid_files[i].name) { |
260 | debugfs_create_file(pid_files[i].name, 0660, | 260 | debugfs_create_file(pid_files[i].name, 0660, |
261 | debugfs_parent, pid_files[i].value, | 261 | debugfs_parent, pid_files[i].value, |
262 | &fops_pid_param); | 262 | &fops_pid_param); |
263 | i++; | 263 | i++; |
264 | } | 264 | } |
265 | } | 265 | } |
@@ -275,7 +275,7 @@ static void __init intel_pstate_debug_expose_params(void) | |||
275 | } | 275 | } |
276 | 276 | ||
277 | static ssize_t store_no_turbo(struct kobject *a, struct attribute *b, | 277 | static ssize_t store_no_turbo(struct kobject *a, struct attribute *b, |
278 | const char *buf, size_t count) | 278 | const char *buf, size_t count) |
279 | { | 279 | { |
280 | unsigned int input; | 280 | unsigned int input; |
281 | int ret; | 281 | int ret; |
@@ -292,7 +292,7 @@ static ssize_t store_no_turbo(struct kobject *a, struct attribute *b, | |||
292 | } | 292 | } |
293 | 293 | ||
294 | static ssize_t store_max_perf_pct(struct kobject *a, struct attribute *b, | 294 | static ssize_t store_max_perf_pct(struct kobject *a, struct attribute *b, |
295 | const char *buf, size_t count) | 295 | const char *buf, size_t count) |
296 | { | 296 | { |
297 | unsigned int input; | 297 | unsigned int input; |
298 | int ret; | 298 | int ret; |
@@ -309,7 +309,7 @@ static ssize_t store_max_perf_pct(struct kobject *a, struct attribute *b, | |||
309 | } | 309 | } |
310 | 310 | ||
311 | static ssize_t store_min_perf_pct(struct kobject *a, struct attribute *b, | 311 | static ssize_t store_min_perf_pct(struct kobject *a, struct attribute *b, |
312 | const char *buf, size_t count) | 312 | const char *buf, size_t count) |
313 | { | 313 | { |
314 | unsigned int input; | 314 | unsigned int input; |
315 | int ret; | 315 | int ret; |
@@ -618,10 +618,10 @@ static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu) | |||
618 | 618 | ||
619 | sample_time = pid_params.sample_rate_ms * USEC_PER_MSEC; | 619 | sample_time = pid_params.sample_rate_ms * USEC_PER_MSEC; |
620 | duration_us = (u32) ktime_us_delta(cpu->sample.time, | 620 | duration_us = (u32) ktime_us_delta(cpu->sample.time, |
621 | cpu->last_sample_time); | 621 | cpu->last_sample_time); |
622 | if (duration_us > sample_time * 3) { | 622 | if (duration_us > sample_time * 3) { |
623 | sample_ratio = div_fp(int_tofp(sample_time), | 623 | sample_ratio = div_fp(int_tofp(sample_time), |
624 | int_tofp(duration_us)); | 624 | int_tofp(duration_us)); |
625 | core_busy = mul_fp(core_busy, sample_ratio); | 625 | core_busy = mul_fp(core_busy, sample_ratio); |
626 | } | 626 | } |
627 | 627 | ||
@@ -763,7 +763,7 @@ static int intel_pstate_verify_policy(struct cpufreq_policy *policy) | |||
763 | cpufreq_verify_within_cpu_limits(policy); | 763 | cpufreq_verify_within_cpu_limits(policy); |
764 | 764 | ||
765 | if (policy->policy != CPUFREQ_POLICY_POWERSAVE && | 765 | if (policy->policy != CPUFREQ_POLICY_POWERSAVE && |
766 | policy->policy != CPUFREQ_POLICY_PERFORMANCE) | 766 | policy->policy != CPUFREQ_POLICY_PERFORMANCE) |
767 | return -EINVAL; | 767 | return -EINVAL; |
768 | 768 | ||
769 | return 0; | 769 | return 0; |
@@ -796,7 +796,7 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy) | |||
796 | 796 | ||
797 | rdmsrl(MSR_IA32_MISC_ENABLE, misc_en); | 797 | rdmsrl(MSR_IA32_MISC_ENABLE, misc_en); |
798 | if (misc_en & MSR_IA32_MISC_ENABLE_TURBO_DISABLE || | 798 | if (misc_en & MSR_IA32_MISC_ENABLE_TURBO_DISABLE || |
799 | cpu->pstate.max_pstate == cpu->pstate.turbo_pstate) { | 799 | cpu->pstate.max_pstate == cpu->pstate.turbo_pstate) { |
800 | limits.turbo_disabled = 1; | 800 | limits.turbo_disabled = 1; |
801 | limits.no_turbo = 1; | 801 | limits.no_turbo = 1; |
802 | } | 802 | } |
@@ -838,8 +838,8 @@ static int intel_pstate_msrs_not_valid(void) | |||
838 | rdmsrl(MSR_IA32_MPERF, mperf); | 838 | rdmsrl(MSR_IA32_MPERF, mperf); |
839 | 839 | ||
840 | if (!pstate_funcs.get_max() || | 840 | if (!pstate_funcs.get_max() || |
841 | !pstate_funcs.get_min() || | 841 | !pstate_funcs.get_min() || |
842 | !pstate_funcs.get_turbo()) | 842 | !pstate_funcs.get_turbo()) |
843 | return -ENODEV; | 843 | return -ENODEV; |
844 | 844 | ||
845 | rdmsrl(MSR_IA32_APERF, tmp); | 845 | rdmsrl(MSR_IA32_APERF, tmp); |
@@ -921,14 +921,14 @@ static bool intel_pstate_platform_pwr_mgmt_exists(void) | |||
921 | struct acpi_table_header hdr; | 921 | struct acpi_table_header hdr; |
922 | struct hw_vendor_info *v_info; | 922 | struct hw_vendor_info *v_info; |
923 | 923 | ||
924 | if (acpi_disabled | 924 | if (acpi_disabled || |
925 | || ACPI_FAILURE(acpi_get_table_header(ACPI_SIG_FADT, 0, &hdr))) | 925 | ACPI_FAILURE(acpi_get_table_header(ACPI_SIG_FADT, 0, &hdr))) |
926 | return false; | 926 | return false; |
927 | 927 | ||
928 | for (v_info = vendor_info; v_info->valid; v_info++) { | 928 | for (v_info = vendor_info; v_info->valid; v_info++) { |
929 | if (!strncmp(hdr.oem_id, v_info->oem_id, ACPI_OEM_ID_SIZE) | 929 | if (!strncmp(hdr.oem_id, v_info->oem_id, ACPI_OEM_ID_SIZE) && |
930 | && !strncmp(hdr.oem_table_id, v_info->oem_table_id, ACPI_OEM_TABLE_ID_SIZE) | 930 | !strncmp(hdr.oem_table_id, v_info->oem_table_id, ACPI_OEM_TABLE_ID_SIZE) && |
931 | && intel_pstate_no_acpi_pss()) | 931 | intel_pstate_no_acpi_pss()) |
932 | return true; | 932 | return true; |
933 | } | 933 | } |
934 | 934 | ||