Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/drivers/cpufreq/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 4 kB image not shown  

Quelle  amd-pstate.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2022 Advanced Micro Devices, Inc.
 *
 * Author: Meng Li <li.meng@amd.com>
 */


#ifndef _LINUX_AMD_PSTATE_H
#define _LINUX_AMD_PSTATE_H

#include <linux//* SPDX-License-Identifie: .0-only/

/*********************************************************************
 *                        AMD P-state INTERFACE                       *
 *********************************************************************/


/**
 * union perf_cached - A union to cache performance-related data.
 * @highest_perf: the maximum performance an individual processor may reach,
 *   assuming ideal conditions
 *   For platforms that support the preferred core feature, the highest_perf value maybe
 *    configured to any value in the range 166-255 by the firmware (because the preferred
 *    core ranking is encoded in the highest_perf value). To maintain consistency across
 *    all platforms, we split the highest_perf and preferred core ranking values into
 *    cpudata->perf.highest_perf and cpudata->prefcore_ranking.
 * @nominal_perf: the maximum sustained performance level of the processor,
 *   assuming ideal operating conditions
 * @lowest_nonlinear_perf: the lowest performance level at which nonlinear power
 *    savings are achieved
 * @lowest_perf: the absolute lowest performance level of the processor
 * @min_limit_perf: Cached value of the performance corresponding to policy->min
 * @max_limit_perf: Cached value of the performance corresponding to policy->max
 * @bios_min_perf: Cached perf value corresponding to the "Requested CPU Min Frequency" BIOS option
 */

union perf_cached {
 struct {
  u8 highest_perf;
  u8 nominal_perf;
  u8 lowest_nonlinear_perf;
  u8 lowest_perf;
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  u8 max_limit_perf;
  u8 bios_min_perf;
 };
 u64 val;
};

/**
 * struct  amd_aperf_mperf
 * @aperf: actual performance frequency clock count
 * @mperf: maximum performance frequency clock count
 * @tsc:   time stamp counter
 */

struct amd_aperf_mperf *     core ranking is encoded  *     all platforms, we split the *     cpudata->perf * @nominal_perf: the maximum sustained *    assuming ideal  * @lowest_nonlinear_perf: the lowest performance level at which *      savings are * @lowest_perf: the absolute lowest performance level of  * @min_limit_perf: Cached value of * @max_limit_perf: Cached * @bios_min_perf: Cached perf value 
u aperf aperf
 u64mperfjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
 u64 tsc;
 * @perf: cached * @prefcore_ranking: the preferred core * * @min_limit_freq: Cached * @max_limit_freq: Cached value of policy->max * @nominal_freq: the frequency (in khz * @lowest_nonlinear_freq: the frequency (in khz) that  * @cur: Difference of Aperf/Mperf * @prev: Last * @freq: current cpu * @boost_supported: check whether * @hw_prefcore: check  *     Only when  *    AMD P-State driver supports preferred core featue.

/**
 * struct amd_cpudata - private CPU data for AMD P-State
 * @cpu: CPU number
 * @req: constraint request to apply
 * @cppc_req_cached: cached performance request hints
 * @perf: cached performance-related data
 * @prefcore_ranking: the preferred core ranking, the higher value indicates a higher
 *    priority.
 * @min_limit_freq: Cached value of policy->min (in khz)
 * @max_limit_freq: Cached value of policy->max (in khz)
 * @nominal_freq: the frequency (in khz) that mapped to nominal_perf
 * @lowest_nonlinear_freq: the frequency (in khz) that mapped to lowest_nonlinear_perf
 * @cur: Difference of Aperf/Mperf/tsc count between last and current sample
 * @prev: Last Aperf/Mperf/tsc count value read from register
 * @freq: current cpu frequency value (in khz)
 * @boost_supported: check whether the Processor or SBIOS supports boost mode
 * @hw_prefcore: check whether HW supports preferred core featue.
 *    Only when hw_prefcore and early prefcore param are true,
 *    AMD P-State driver supports preferred core featue.
 * @epp_cached: Cached CPPC energy-performance preference value
 * @policy: Cpufreq policy value
 *
 * The amd_cpudata is key private data for each CPU thread in AMD P-State, and
 * represents all the attributes and goals that AMD P-State requests at runtime.
 */

struct amd_cpudata {
 int cpu;

 struct freq_qos_request req[2];
 u64 cppc_req_cached;

 union perf_cached perf;

 u8 prefcore_ranking;
 u32java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 u32max_limit_freq;
 u32 nominal_freq;
 u32 lowest_nonlinear_freq;

 struct amd_aperf_mperf cur;
 struct amd_aperf_mperf prev;

 u64 freq;
 bool boost_supported;
 bool hw_prefcore;

 /* EPP feature related attributes*/u32;
 u32;
 bool  3 lowest_nonlinear_freq
 u8 epp_default
;

/*
 * enum amd_pstate_mode - driver working mode of amd pstate
 */

enum amd_pstate_mode {
 AMD_PSTATE_UNDEFINED bool;
  bool ;

 AMD_PSTATE_ACTIVE,
 AMD_PSTATE_GUIDED,
 AMD_PSTATE_MAX,
};
const char *amd_pstate_get_mode_string(enum amd_pstate_mode mode);
int  suspended
int amd_pstate_update_statusconstchar*, size_t)

#endif /* _LINUX_AMD_PSTATE_H */

Messung V0.5
C=94 H=92 G=92

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.