Skip to content

Commit e966bc5

Browse files
authored
docs: Fix a few typos (#64)
There are small typos in: - src/arm/linux/chipset.c - src/arm/linux/clusters.c - src/arm/linux/init.c - src/arm/linux/midr.c - src/x86/name.c Fixes: - Should read `preceding` rather than `preceeding`. - Should read `information` rather than `infromation`. - Should read `tabulated` rather than `tabluted`. - Should read `everything` rather than `everywhing`.
1 parent 662ca7c commit e966bc5

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/arm/linux/chipset.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ static bool match_and_parse_sunxi(
14271427
return false;
14281428
}
14291429

1430-
/* Compare sunXi platform id and number of cores to tabluted values to decode chipset name */
1430+
/* Compare sunXi platform id and number of cores to tabulated values to decode chipset name */
14311431
uint32_t model = 0;
14321432
char suffix = 0;
14331433
for (size_t i = 0; i < CPUINFO_COUNT_OF(sunxi_map_entries); i++) {

src/arm/linux/clusters.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static inline bool bitmask_all(uint32_t bitfield, uint32_t mask) {
4848
* @param usable_processors - number of processors in the @p processors array with CPUINFO_LINUX_FLAG_VALID flags.
4949
* @param max_processors - number of elements in the @p processors array.
5050
* @param[in,out] processors - processor descriptors with pre-parsed POSSIBLE and PRESENT flags, minimum/maximum
51-
* frequency, MIDR infromation, and core cluster (package siblings list) information.
51+
* frequency, MIDR information, and core cluster (package siblings list) information.
5252
*
5353
* @retval true if the heuristic successfully assigned all processors into clusters of cores.
5454
* @retval false if known details about processors contradict the heuristic configuration of core clusters.
@@ -292,9 +292,9 @@ bool cpuinfo_arm_linux_detect_core_clusters_by_heuristic(
292292
* - Processors assigned to these clusters stay assigned to the same clusters
293293
* - No new processors are added to these clusters
294294
* - Processors without pre-assigned cluster are clustered in one sequential scan:
295-
* - If known details (min/max frequency, MIDR components) of a processor are compatible with a preceeding
296-
* processor, without pre-assigned cluster, the processor is assigned to the cluster of the preceeding processor.
297-
* - If known details (min/max frequency, MIDR components) of a processor are not compatible with a preceeding
295+
* - If known details (min/max frequency, MIDR components) of a processor are compatible with a preceding
296+
* processor, without pre-assigned cluster, the processor is assigned to the cluster of the preceding processor.
297+
* - If known details (min/max frequency, MIDR components) of a processor are not compatible with a preceding
298298
* processor, the processor is assigned to a newly created cluster.
299299
*
300300
* The function must be called after parsing OS-provided information on core clusters, and usually is called only
@@ -309,7 +309,7 @@ bool cpuinfo_arm_linux_detect_core_clusters_by_heuristic(
309309
*
310310
* @param max_processors - number of elements in the @p processors array.
311311
* @param[in,out] processors - processor descriptors with pre-parsed POSSIBLE and PRESENT flags, minimum/maximum
312-
* frequency, MIDR infromation, and core cluster (package siblings list) information.
312+
* frequency, MIDR information, and core cluster (package siblings list) information.
313313
*
314314
* @retval true if the heuristic successfully assigned all processors into clusters of cores.
315315
* @retval false if known details about processors contradict the heuristic configuration of core clusters.
@@ -331,7 +331,7 @@ void cpuinfo_arm_linux_detect_core_clusters_by_sequential_scan(
331331
if (cluster_flags & CPUINFO_LINUX_FLAG_MIN_FREQUENCY) {
332332
if (cluster_min_frequency != processors[i].min_frequency) {
333333
cpuinfo_log_info(
334-
"minimum frequency of processor %"PRIu32" (%"PRIu32" KHz) is different than of preceeding cluster (%"PRIu32" KHz); "
334+
"minimum frequency of processor %"PRIu32" (%"PRIu32" KHz) is different than of preceding cluster (%"PRIu32" KHz); "
335335
"processor %"PRIu32" starts to a new cluster",
336336
i, processors[i].min_frequency, cluster_min_frequency, i);
337337
goto new_cluster;
@@ -346,7 +346,7 @@ void cpuinfo_arm_linux_detect_core_clusters_by_sequential_scan(
346346
if (cluster_flags & CPUINFO_LINUX_FLAG_MAX_FREQUENCY) {
347347
if (cluster_max_frequency != processors[i].max_frequency) {
348348
cpuinfo_log_debug(
349-
"maximum frequency of processor %"PRIu32" (%"PRIu32" KHz) is different than of preceeding cluster (%"PRIu32" KHz); "
349+
"maximum frequency of processor %"PRIu32" (%"PRIu32" KHz) is different than of preceding cluster (%"PRIu32" KHz); "
350350
"processor %"PRIu32" starts a new cluster",
351351
i, processors[i].max_frequency, cluster_max_frequency, i);
352352
goto new_cluster;
@@ -361,7 +361,7 @@ void cpuinfo_arm_linux_detect_core_clusters_by_sequential_scan(
361361
if (cluster_flags & CPUINFO_ARM_LINUX_VALID_IMPLEMENTER) {
362362
if ((cluster_midr & CPUINFO_ARM_MIDR_IMPLEMENTER_MASK) != (processors[i].midr & CPUINFO_ARM_MIDR_IMPLEMENTER_MASK)) {
363363
cpuinfo_log_debug(
364-
"CPU Implementer of processor %"PRIu32" (0x%02"PRIx32") is different than of preceeding cluster (0x%02"PRIx32"); "
364+
"CPU Implementer of processor %"PRIu32" (0x%02"PRIx32") is different than of preceding cluster (0x%02"PRIx32"); "
365365
"processor %"PRIu32" starts to a new cluster",
366366
i, midr_get_implementer(processors[i].midr), midr_get_implementer(cluster_midr), i);
367367
goto new_cluster;
@@ -417,11 +417,11 @@ void cpuinfo_arm_linux_detect_core_clusters_by_sequential_scan(
417417
}
418418
}
419419

420-
/* All checks passed, attach processor to the preceeding cluster */
420+
/* All checks passed, attach processor to the preceding cluster */
421421
cluster_processors++;
422422
processors[i].package_leader_id = cluster_start;
423423
processors[i].flags |= CPUINFO_LINUX_FLAG_PACKAGE_CLUSTER;
424-
cpuinfo_log_debug("assigned processor %"PRIu32" to preceeding cluster of processor %"PRIu32, i, cluster_start);
424+
cpuinfo_log_debug("assigned processor %"PRIu32" to preceding cluster of processor %"PRIu32, i, cluster_start);
425425
continue;
426426

427427
new_cluster:

src/arm/linux/init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ void cpuinfo_arm_linux_init(void) {
510510
uint32_t l2_count = 0, l3_count = 0, big_l3_size = 0, cluster_id = UINT32_MAX;
511511
/* Indication whether L3 (if it exists) is shared between all cores */
512512
bool shared_l3 = true;
513-
/* Populate cache infromation structures in l1i, l1d */
513+
/* Populate cache information structures in l1i, l1d */
514514
for (uint32_t i = 0; i < valid_processors; i++) {
515515
if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) {
516516
cluster_id += 1;

src/arm/linux/midr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,10 @@ static bool cpuinfo_arm_linux_detect_cluster_midr_by_big_little_heuristic(
675675

676676
/*
677677
* Initializes MIDR for leaders of core clusters in a single sequential scan:
678-
* - Clusters preceeding the first reported MIDR value are assumed to have default MIDR value.
678+
* - Clusters preceding the first reported MIDR value are assumed to have default MIDR value.
679679
* - Clusters following any reported MIDR value to have that MIDR value.
680680
*
681-
* @param default_midr - MIDR value that will be assigned to cluster leaders preceeding any reported MIDR value.
681+
* @param default_midr - MIDR value that will be assigned to cluster leaders preceding any reported MIDR value.
682682
* @param processors_count - number of logical processor descriptions in the @p processors array.
683683
* @param[in,out] processors - array of logical processor descriptions with pre-parsed MIDR, maximum frequency,
684684
* and decoded core cluster (package_leader_id) information.
@@ -833,7 +833,7 @@ uint32_t cpuinfo_arm_linux_detect_cluster_midr(
833833
* 2. For systems with 2 clusters and MIDR known for one cluster, assume big.LITTLE configuration,
834834
* and estimate MIDR for the other cluster under assumption that MIDR for the big cluster is known.
835835
* 3. Initialize MIDRs for core clusters in a single sequential scan:
836-
* - Clusters preceeding the first reported MIDR value are assumed to have the last reported MIDR value.
836+
* - Clusters preceding the first reported MIDR value are assumed to have the last reported MIDR value.
837837
* - Clusters following any reported MIDR value to have that MIDR value.
838838
*/
839839

src/x86/name.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static bool transform_token(char* token_start, char* token_end, struct parser_st
234234
return true;
235235
}
236236
/*
237-
* Erase everywhing after "SOC" on AMD System-on-Chips, e.g.
237+
* Erase everything after "SOC" on AMD System-on-Chips, e.g.
238238
* "AMD GX-212JC SOC with Radeon(TM) R2E Graphics \0"
239239
*/
240240
if (erase_matching(token_start, token_length, "SOC")) {

0 commit comments

Comments
 (0)