Message ID | 20240911042726.959018-15-marcelo.cerri@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X3SHf2QTrz1y1C for <incoming@patchwork.ozlabs.org>; Wed, 11 Sep 2024 14:28:30 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1soExq-00058H-0K; Wed, 11 Sep 2024 04:28:22 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <marcelo.cerri@canonical.com>) id 1soExn-00051v-SH for kernel-team@lists.ubuntu.com; Wed, 11 Sep 2024 04:28:19 +0000 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 8D7A93F5B8 for <kernel-team@lists.ubuntu.com>; Wed, 11 Sep 2024 04:28:19 +0000 (UTC) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-1fd9a0efe4eso79493105ad.0 for <kernel-team@lists.ubuntu.com>; Tue, 10 Sep 2024 21:28:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726028898; x=1726633698; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4Fcekwy/mnKBkv/DhlkKLBUVGC1GySKj2rTkvQl++/Q=; b=C7g65KOAKsXV6dh19kPUQVHWAx2mWO4BK7RASQYhik/4mAyTTRzP8q2+0Yk16ZBW9X AlLgUgE1r8xE4vJRvfZnCSoDj0u/0s4VLBhyy4gHYkWVk0gbqSfJmNh+t0j9qqiGAfWj a3s17Co0pSWvo/hvsM7NfTPeXLE+i4RKgwRECLHCTexgVJUad3v/PoGTlf337+ttKV9Q 936D4U+sAzg1Y2ckbcX45/NDz6tZoN2od6x8HBZW9/hkVJ1Kl1Ntnhe6pJCHWx4/P20q TqnXeDpBLIsGwSWh8Uq1tLm4ojkO9JAouky3MO0MOCoYqok7U7+NG7d7/+dhjdJ5a8XQ GfUQ== X-Gm-Message-State: AOJu0Yw4uOnG/wlLsgdIFoYMGrCOGge2zClJMveD8ZL8LvT0sl56j1Of 1lDpvKUsmlfa3LjKFryQgdSn6WQeyyuz5u2wbykVji6/N8I14WzXJvhfAU9zI4xfZ/P66C5Wnby Ueb0X9/0KaWQVxVqhCB0sm1WzdpSzAkzqQdv35sCPLD1y7CgIxdG8/fJWOQbsnsIyqyW0gm2p17 KNHtRA2r3z X-Received: by 2002:a17:902:e846:b0:206:c8dc:e334 with SMTP id d9443c01a7336-2074c69b72emr42719245ad.39.1726028897641; Tue, 10 Sep 2024 21:28:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGf+TC19MZODlV7h7mfagItW6mP5lN4A5z/1QoVnb1CFbK9I4rXpmhUtKJdO3bTOjOCeJcmsQ== X-Received: by 2002:a17:902:e846:b0:206:c8dc:e334 with SMTP id d9443c01a7336-2074c69b72emr42718985ad.39.1726028897188; Tue, 10 Sep 2024 21:28:17 -0700 (PDT) Received: from canonical.com ([189.78.78.86]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710e1a684sm55530155ad.10.2024.09.10.21.28.16 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 21:28:16 -0700 (PDT) From: Marcelo Henrique Cerri <marcelo.cerri@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][focal:linux-gcp][PATCH 14/17] intel_idle: Fix max_cstate for processor models without C-state tables Date: Wed, 11 Sep 2024 01:27:23 -0300 Message-Id: <20240911042726.959018-15-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911042726.959018-1-marcelo.cerri@canonical.com> References: <20240911042726.959018-1-marcelo.cerri@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
lp:#2080324 - linux-gcp: Improve idle support
|
expand
|
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 9eb131434af3..4abbae526a3f 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -1231,7 +1231,7 @@ static void intel_idle_init_cstates_acpi(struct cpuidle_driver *drv) struct acpi_processor_cx *cx; struct cpuidle_state *state; - if (intel_idle_max_cstate_reached(cstate)) + if (intel_idle_max_cstate_reached(cstate - 1)) break; cx = &acpi_state_table.states[cstate];