From nobody Sun Feb 8 05:23:19 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CFBA145B0C for ; Tue, 24 Dec 2024 06:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735021431; cv=none; b=IuN73OiLNCKxqrdtvAJB1+1Pp2tCc5eWoLTWeXBOs1n8ZAwKmK6gT4OyMcNQ9MNpJ3+I56UgmXC24lzo6QuzdJrn6SBnQVCJO/+KIpYsGEnRLo2ZNpTHVZAOzCGPdhRLCle4v8ys+LFhVQRzugfiDdROh2CWkwfz87stv6ndjU0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735021431; c=relaxed/simple; bh=KctfPhfAyHhrt+e0+CUldPpyF+8FgOIuioVktpwHf6g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BQ15hEa3l6+jJstOv5ggkRM7KC6r1hCNhlERGa13dDQfn+YXPjkpoMQjQ2J0FwqUB/Yxcr9z/ALUcrUm1bmD1B8oGP/DaiDR/93+qzNiX82+Qowo0MbleqEDC1PfFiTUu4GN6b21sXVOtmnDW+jVmIpd81LGGw5jzFxs2CV7fWI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ayUPCN6C; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ayUPCN6C" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1735021424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uJZM3hqn9QtSLU1MUVvqBs1z282Qm2e3N81k4MFb1+8=; b=ayUPCN6CEjcnVpaTiBCXr43Lyiwl4NIRxLH5Q8m/jwY+i0kxVM+15ui9AoO1azJ5w4acVE liv4JptYQKowW7+AEW5wiXd4sGudNNZRY9pkfE5v0GsMpWGhjV6j406GM/NGmlLXxlhssz VWcNWNNrGtmRNPDrOolfY2fnXRKfou8= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-96-K8tKJkjrPvO58Qnv8HMlaQ-1; Tue, 24 Dec 2024 01:23:37 -0500 X-MC-Unique: K8tKJkjrPvO58Qnv8HMlaQ-1 X-Mimecast-MFC-AGG-ID: K8tKJkjrPvO58Qnv8HMlaQ Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-468f7e0aef7so108179591cf.2 for ; Mon, 23 Dec 2024 22:23:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735021417; x=1735626217; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uJZM3hqn9QtSLU1MUVvqBs1z282Qm2e3N81k4MFb1+8=; b=GGDQhSMR0lAj0p/2aYvjKqf8G9LalZFxpY08P2Kmgsj3fbqbSxZ4DDNCrIRg0Xc7Gh k2PmZVj3qwT7r5hCFgIU8QLBPjqFONbPfYgZkzk9CTZPjzBtr2th3ueI7k7L/qbhtq1B 64VdthqfosnGxoImvEJAdJCOKIvvZVumEdX22jZOlGLUDGthemlbKgO1YbkPTtgBHclO 4pSYGjIBNtuU6H70s+ehhUBapRv5bTsu/wiUnnwe4JHYiUj37XUsc/jyDe5hOmx6NaS+ P5uYgn7feQftk1XUfXhyOzL5cCGTGg0H8Ye6Y6oZXKdjjqqQQ6JmSRuwFZK2Djwz4z/n wmhA== X-Forwarded-Encrypted: i=1; AJvYcCVrzTtreTjjvvIjo8gjT/mOlcQXxXD8yL/RrLop3HvWsog24ztZMF8ccl3EnLqZv3P8EXp4MSxgNTdkeyg=@vger.kernel.org X-Gm-Message-State: AOJu0Yz88Gr0toyXV/Ty6Ut+dTHW3GmUoFXrsrhiZpaY06D5v3lfuVjt gGel3zUNPfDnRANIkuNZ5VHBY42LHOXySmm0fwHaTqwyukHu+DpxY+5yC/n3pEO4JiyPF4kjhxh zDnF84g+Bo14+d0+i/3PNeSOXOeiSPBQYYceceZribVoHIv9f+bMw1iavXm/pug== X-Gm-Gg: ASbGncvJ2e0PxSaCFi1Ep/0otyyT9HrixOZBxY2X5M9ueXcZ9g1MisdaOOSXArRgefV xtNKQmqkQE4Ig5j22YQqNJfHPY5++Dz6cG2pCUzsnIuUbjhRFYP3s7ldoXPh5AuNVPYFhi2wfGB 09tZFzpHJmg0Zjn3hboejv8GJeIzSorgOTU1Gf6VnLRzIMf3kcnyE1Dai0PfVee35hXuEY6djng BSNm0I4S3XGtGDGTXvMRcu3FwFI10EtXXo0I49StPXGw93N2KG0Sw0wJlmpuelxtmkI X-Received: by 2002:ac8:7d42:0:b0:467:7441:2717 with SMTP id d75a77b69052e-46a4a8d2adamr313494801cf.19.1735021416959; Mon, 23 Dec 2024 22:23:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/OSWmlrPjay5mAbXNcAYNfJpVQrN3GJ41Kn35W2lGPp1TWj/EuG0UN4EEIqV0DMNuOtCyuQ== X-Received: by 2002:ac8:7d42:0:b0:467:7441:2717 with SMTP id d75a77b69052e-46a4a8d2adamr313494071cf.19.1735021415743; Mon, 23 Dec 2024 22:23:35 -0800 (PST) Received: from thinkpad2024.redhat.com ([71.217.66.209]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46a3e688cd3sm50743991cf.36.2024.12.23.22.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2024 22:23:35 -0800 (PST) From: "John B. Wyatt IV" To: Shuah Khan , Thomas Renninger Cc: "John B. Wyatt IV" , linux-pm@vger.kernel.org, Mario Limonciello , Shuah Khan , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, John Kacur , "John B. Wyatt IV" Subject: [PATCH] pm: cpupower: Add header changes for cpufreq.h to SWIG bindings Date: Tue, 24 Dec 2024 01:23:28 -0500 Message-ID: <20241224062329.39606-1-jwyatt@redhat.com> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" "cpupower: Add support for showing energy performance preference" added two new functions to cpufreq.h. This patch adds them to the bindings. Link: https://lore.kernel.org/linux-pm/8dc731c3-6586-4265-ae6a-d93ed219a963= @linuxfoundation.org/T/#t Tested by compiling both libcpupower and the headers; running the test script that does not use the functions as a basic sanity test. Signed-off-by: "John B. Wyatt IV" Signed-off-by: "John B. Wyatt IV" --- tools/power/cpupower/bindings/python/raw_pylibcpupower.swg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg b/t= ools/power/cpupower/bindings/python/raw_pylibcpupower.swg index 96556d87a745..a8226c79cfea 100644 --- a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg +++ b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg @@ -134,6 +134,9 @@ void cpufreq_put_stats(struct cpufreq_stats *stats); =20 unsigned long cpufreq_get_transitions(unsigned int cpu); =20 +char *cpufreq_get_energy_performance_preference(unsigned int cpu); +void cpufreq_put_energy_performance_preference(char *ptr); + int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy); =20 int cpufreq_modify_policy_min(unsigned int cpu, unsigned long min_freq); --=20 2.47.1