drm/amd: Fix spelling mistake "throtting" -> "throttling"
authorColin Ian King <colin.i.king@gmail.com>
Wed, 23 Aug 2023 09:03:23 +0000 (10:03 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:26:50 +0000 (15:26 -0400)
There is a spelling mistake in variable throtting_events, rename
it to throttling_events.

Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 5e038f843ed0a1d137a72510bd36b8df70084167..753a427ec20f3833bbed9f655e63636e0e1df387 100644 (file)
@@ -2313,7 +2313,7 @@ static const struct throttling_logging_label {
 static void arcturus_log_thermal_throttling_event(struct smu_context *smu)
 {
        int ret;
-       int throttler_idx, throtting_events = 0, buf_idx = 0;
+       int throttler_idx, throttling_events = 0, buf_idx = 0;
        struct amdgpu_device *adev = smu->adev;
        uint32_t throttler_status;
        char log_buf[256];
@@ -2328,11 +2328,11 @@ static void arcturus_log_thermal_throttling_event(struct smu_context *smu)
        for (throttler_idx = 0; throttler_idx < ARRAY_SIZE(logging_label);
             throttler_idx++) {
                if (throttler_status & logging_label[throttler_idx].feature_mask) {
-                       throtting_events++;
+                       throttling_events++;
                        buf_idx += snprintf(log_buf + buf_idx,
                                            sizeof(log_buf) - buf_idx,
                                            "%s%s",
-                                           throtting_events > 1 ? " and " : "",
+                                           throttling_events > 1 ? " and " : "",
                                            logging_label[throttler_idx].label);
                        if (buf_idx >= sizeof(log_buf)) {
                                dev_err(adev->dev, "buffer overflow!\n");
index cc3169400c9b087e211eab3be3bcbac5496e2b8d..bed5a9df1c0652aa438c34231f117d3c09b295e3 100644 (file)
@@ -1674,7 +1674,7 @@ static const struct throttling_logging_label {
 static void aldebaran_log_thermal_throttling_event(struct smu_context *smu)
 {
        int ret;
-       int throttler_idx, throtting_events = 0, buf_idx = 0;
+       int throttler_idx, throttling_events = 0, buf_idx = 0;
        struct amdgpu_device *adev = smu->adev;
        uint32_t throttler_status;
        char log_buf[256];
@@ -1689,11 +1689,11 @@ static void aldebaran_log_thermal_throttling_event(struct smu_context *smu)
        for (throttler_idx = 0; throttler_idx < ARRAY_SIZE(logging_label);
             throttler_idx++) {
                if (throttler_status & logging_label[throttler_idx].feature_mask) {
-                       throtting_events++;
+                       throttling_events++;
                        buf_idx += snprintf(log_buf + buf_idx,
                                            sizeof(log_buf) - buf_idx,
                                            "%s%s",
-                                           throtting_events > 1 ? " and " : "",
+                                           throttling_events > 1 ? " and " : "",
                                            logging_label[throttler_idx].label);
                        if (buf_idx >= sizeof(log_buf)) {
                                dev_err(adev->dev, "buffer overflow!\n");
index d3b578e6bc2aaa604b42191bb5c86d8530b7ab96..fa4ad08099ef53ef53250f2aad37fc11b5c2151c 100644 (file)
@@ -1888,7 +1888,7 @@ static const char *const throttling_logging_label[] = {
 
 static void smu_v13_0_6_log_thermal_throttling_event(struct smu_context *smu)
 {
-       int throttler_idx, throtting_events = 0, buf_idx = 0;
+       int throttler_idx, throttling_events = 0, buf_idx = 0;
        struct amdgpu_device *adev = smu->adev;
        uint32_t throttler_status;
        char log_buf[256];
@@ -1902,10 +1902,10 @@ static void smu_v13_0_6_log_thermal_throttling_event(struct smu_context *smu)
             throttler_idx < ARRAY_SIZE(throttling_logging_label);
             throttler_idx++) {
                if (throttler_status & (1U << throttler_idx)) {
-                       throtting_events++;
+                       throttling_events++;
                        buf_idx += snprintf(
                                log_buf + buf_idx, sizeof(log_buf) - buf_idx,
-                               "%s%s", throtting_events > 1 ? " and " : "",
+                               "%s%s", throttling_events > 1 ? " and " : "",
                                throttling_logging_label[throttler_idx]);
                        if (buf_idx >= sizeof(log_buf)) {
                                dev_err(adev->dev, "buffer overflow!\n");