aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2019-03-25 14:34:00 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-03-26 17:33:43 -0400
commit603fadf33604a2e170eb833f99f569d3597f1f09 (patch)
treed4f277269faa72f99eb91126e53e68ff3c534f79 /drivers/acpi/cppc_acpi.c
parent8c2ffd9174779014c3fe1f96d9dc3641d9175f00 (diff)
ACPI: Fix comment typos
Fix some misspellings in comments. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
-rw-r--r--drivers/acpi/cppc_acpi.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c
index 1b207fca1420..e947a1ec82f9 100644
--- a/drivers/acpi/cppc_acpi.c
+++ b/drivers/acpi/cppc_acpi.c
@@ -81,9 +81,9 @@ struct cppc_pcc_data {
81 int refcount; 81 int refcount;
82}; 82};
83 83
84/* Array to represent the PCC channel per subspace id */ 84/* Array to represent the PCC channel per subspace ID */
85static struct cppc_pcc_data *pcc_data[MAX_PCC_SUBSPACES]; 85static struct cppc_pcc_data *pcc_data[MAX_PCC_SUBSPACES];
86/* The cpu_pcc_subspace_idx containsper CPU subspace id */ 86/* The cpu_pcc_subspace_idx contains per CPU subspace ID */
87static DEFINE_PER_CPU(int, cpu_pcc_subspace_idx); 87static DEFINE_PER_CPU(int, cpu_pcc_subspace_idx);
88 88
89/* 89/*
@@ -436,7 +436,7 @@ int acpi_get_psd_map(struct cppc_cpudata **all_cpu_data)
436 return -ENOMEM; 436 return -ENOMEM;
437 437
438 /* 438 /*
439 * Now that we have _PSD data from all CPUs, lets setup P-state 439 * Now that we have _PSD data from all CPUs, let's setup P-state
440 * domain info. 440 * domain info.
441 */ 441 */
442 for_each_possible_cpu(i) { 442 for_each_possible_cpu(i) {
@@ -588,7 +588,7 @@ static int register_pcc_channel(int pcc_ss_idx)
588 return -ENOMEM; 588 return -ENOMEM;
589 } 589 }
590 590
591 /* Set flag so that we dont come here for each CPU. */ 591 /* Set flag so that we don't come here for each CPU. */
592 pcc_data[pcc_ss_idx]->pcc_channel_acquired = true; 592 pcc_data[pcc_ss_idx]->pcc_channel_acquired = true;
593 } 593 }
594 594
@@ -613,7 +613,7 @@ bool __weak cpc_ffh_supported(void)
613 * 613 *
614 * Check and allocate the cppc_pcc_data memory. 614 * Check and allocate the cppc_pcc_data memory.
615 * In some processor configurations it is possible that same subspace 615 * In some processor configurations it is possible that same subspace
616 * is shared between multiple CPU's. This is seen especially in CPU's 616 * is shared between multiple CPUs. This is seen especially in CPUs
617 * with hardware multi-threading support. 617 * with hardware multi-threading support.
618 * 618 *
619 * Return: 0 for success, errno for failure 619 * Return: 0 for success, errno for failure
@@ -711,7 +711,7 @@ static bool is_cppc_supported(int revision, int num_ent)
711 711
712/** 712/**
713 * acpi_cppc_processor_probe - Search for per CPU _CPC objects. 713 * acpi_cppc_processor_probe - Search for per CPU _CPC objects.
714 * @pr: Ptr to acpi_processor containing this CPUs logical Id. 714 * @pr: Ptr to acpi_processor containing this CPU's logical ID.
715 * 715 *
716 * Return: 0 for success or negative value for err. 716 * Return: 0 for success or negative value for err.
717 */ 717 */
@@ -728,7 +728,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
728 acpi_status status; 728 acpi_status status;
729 int ret = -EFAULT; 729 int ret = -EFAULT;
730 730
731 /* Parse the ACPI _CPC table for this cpu. */ 731 /* Parse the ACPI _CPC table for this CPU. */
732 status = acpi_evaluate_object_typed(handle, "_CPC", NULL, &output, 732 status = acpi_evaluate_object_typed(handle, "_CPC", NULL, &output,
733 ACPI_TYPE_PACKAGE); 733 ACPI_TYPE_PACKAGE);
734 if (ACPI_FAILURE(status)) { 734 if (ACPI_FAILURE(status)) {
@@ -840,7 +840,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
840 if (ret) 840 if (ret)
841 goto out_free; 841 goto out_free;
842 842
843 /* Register PCC channel once for all PCC subspace id. */ 843 /* Register PCC channel once for all PCC subspace ID. */
844 if (pcc_subspace_id >= 0 && !pcc_data[pcc_subspace_id]->pcc_channel_acquired) { 844 if (pcc_subspace_id >= 0 && !pcc_data[pcc_subspace_id]->pcc_channel_acquired) {
845 ret = register_pcc_channel(pcc_subspace_id); 845 ret = register_pcc_channel(pcc_subspace_id);
846 if (ret) 846 if (ret)
@@ -860,7 +860,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
860 goto out_free; 860 goto out_free;
861 } 861 }
862 862
863 /* Plug PSD data into this CPUs CPC descriptor. */ 863 /* Plug PSD data into this CPU's CPC descriptor. */
864 per_cpu(cpc_desc_ptr, pr->id) = cpc_ptr; 864 per_cpu(cpc_desc_ptr, pr->id) = cpc_ptr;
865 865
866 ret = kobject_init_and_add(&cpc_ptr->kobj, &cppc_ktype, &cpu_dev->kobj, 866 ret = kobject_init_and_add(&cpc_ptr->kobj, &cppc_ktype, &cpu_dev->kobj,
@@ -891,7 +891,7 @@ EXPORT_SYMBOL_GPL(acpi_cppc_processor_probe);
891 891
892/** 892/**
893 * acpi_cppc_processor_exit - Cleanup CPC structs. 893 * acpi_cppc_processor_exit - Cleanup CPC structs.
894 * @pr: Ptr to acpi_processor containing this CPUs logical Id. 894 * @pr: Ptr to acpi_processor containing this CPU's logical ID.
895 * 895 *
896 * Return: Void 896 * Return: Void
897 */ 897 */
@@ -931,7 +931,7 @@ EXPORT_SYMBOL_GPL(acpi_cppc_processor_exit);
931 931
932/** 932/**
933 * cpc_read_ffh() - Read FFH register 933 * cpc_read_ffh() - Read FFH register
934 * @cpunum: cpu number to read 934 * @cpunum: CPU number to read
935 * @reg: cppc register information 935 * @reg: cppc register information
936 * @val: place holder for return value 936 * @val: place holder for return value
937 * 937 *
@@ -946,7 +946,7 @@ int __weak cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val)
946 946
947/** 947/**
948 * cpc_write_ffh() - Write FFH register 948 * cpc_write_ffh() - Write FFH register
949 * @cpunum: cpu number to write 949 * @cpunum: CPU number to write
950 * @reg: cppc register information 950 * @reg: cppc register information
951 * @val: value to write 951 * @val: value to write
952 * 952 *
@@ -1093,7 +1093,7 @@ int cppc_get_desired_perf(int cpunum, u64 *desired_perf)
1093EXPORT_SYMBOL_GPL(cppc_get_desired_perf); 1093EXPORT_SYMBOL_GPL(cppc_get_desired_perf);
1094 1094
1095/** 1095/**
1096 * cppc_get_perf_caps - Get a CPUs performance capabilities. 1096 * cppc_get_perf_caps - Get a CPU's performance capabilities.
1097 * @cpunum: CPU from which to get capabilities info. 1097 * @cpunum: CPU from which to get capabilities info.
1098 * @perf_caps: ptr to cppc_perf_caps. See cppc_acpi.h 1098 * @perf_caps: ptr to cppc_perf_caps. See cppc_acpi.h
1099 * 1099 *
@@ -1178,7 +1178,7 @@ out_err:
1178EXPORT_SYMBOL_GPL(cppc_get_perf_caps); 1178EXPORT_SYMBOL_GPL(cppc_get_perf_caps);
1179 1179
1180/** 1180/**
1181 * cppc_get_perf_ctrs - Read a CPUs performance feedback counters. 1181 * cppc_get_perf_ctrs - Read a CPU's performance feedback counters.
1182 * @cpunum: CPU from which to read counters. 1182 * @cpunum: CPU from which to read counters.
1183 * @perf_fb_ctrs: ptr to cppc_perf_fb_ctrs. See cppc_acpi.h 1183 * @perf_fb_ctrs: ptr to cppc_perf_fb_ctrs. See cppc_acpi.h
1184 * 1184 *
@@ -1205,7 +1205,7 @@ int cppc_get_perf_ctrs(int cpunum, struct cppc_perf_fb_ctrs *perf_fb_ctrs)
1205 ctr_wrap_reg = &cpc_desc->cpc_regs[CTR_WRAP_TIME]; 1205 ctr_wrap_reg = &cpc_desc->cpc_regs[CTR_WRAP_TIME];
1206 1206
1207 /* 1207 /*
1208 * If refernce perf register is not supported then we should 1208 * If reference perf register is not supported then we should
1209 * use the nominal perf value 1209 * use the nominal perf value
1210 */ 1210 */
1211 if (!CPC_SUPPORTED(ref_perf_reg)) 1211 if (!CPC_SUPPORTED(ref_perf_reg))
@@ -1258,7 +1258,7 @@ out_err:
1258EXPORT_SYMBOL_GPL(cppc_get_perf_ctrs); 1258EXPORT_SYMBOL_GPL(cppc_get_perf_ctrs);
1259 1259
1260/** 1260/**
1261 * cppc_set_perf - Set a CPUs performance controls. 1261 * cppc_set_perf - Set a CPU's performance controls.
1262 * @cpu: CPU for which to set performance controls. 1262 * @cpu: CPU for which to set performance controls.
1263 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h 1263 * @perf_ctrls: ptr to cppc_perf_ctrls. See cppc_acpi.h
1264 * 1264 *
@@ -1339,7 +1339,7 @@ int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls)
1339 * executing the Phase-II. 1339 * executing the Phase-II.
1340 * 2. Some other CPU has beaten this CPU to successfully execute the 1340 * 2. Some other CPU has beaten this CPU to successfully execute the
1341 * write_trylock and has already acquired the write_lock. We know for a 1341 * write_trylock and has already acquired the write_lock. We know for a
1342 * fact it(other CPU acquiring the write_lock) couldn't have happened 1342 * fact it (other CPU acquiring the write_lock) couldn't have happened
1343 * before this CPU's Phase-I as we held the read_lock. 1343 * before this CPU's Phase-I as we held the read_lock.
1344 * 3. Some other CPU executing pcc CMD_READ has stolen the 1344 * 3. Some other CPU executing pcc CMD_READ has stolen the
1345 * down_write, in which case, send_pcc_cmd will check for pending 1345 * down_write, in which case, send_pcc_cmd will check for pending