intel_powerclamp.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) | intel_powerclamp.c (9c51044cbc5fe9bb2c3bf71cb0dbcbd96ed03301) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * intel_powerclamp.c - package c-state idle injection 4 * 5 * Copyright (c) 2012, Intel Corporation. 6 * 7 * Authors: 8 * Arjan van de Ven <arjan@linux.intel.com> --- 637 unchanged lines hidden (view full) --- 646/* bind to generic thermal layer as cooling device*/ 647static struct thermal_cooling_device_ops powerclamp_cooling_ops = { 648 .get_max_state = powerclamp_get_max_state, 649 .get_cur_state = powerclamp_get_cur_state, 650 .set_cur_state = powerclamp_set_cur_state, 651}; 652 653static const struct x86_cpu_id __initconst intel_powerclamp_ids[] = { | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * intel_powerclamp.c - package c-state idle injection 4 * 5 * Copyright (c) 2012, Intel Corporation. 6 * 7 * Authors: 8 * Arjan van de Ven <arjan@linux.intel.com> --- 637 unchanged lines hidden (view full) --- 646/* bind to generic thermal layer as cooling device*/ 647static struct thermal_cooling_device_ops powerclamp_cooling_ops = { 648 .get_max_state = powerclamp_get_max_state, 649 .get_cur_state = powerclamp_get_cur_state, 650 .set_cur_state = powerclamp_set_cur_state, 651}; 652 653static const struct x86_cpu_id __initconst intel_powerclamp_ids[] = { |
654 { X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, X86_FEATURE_MWAIT }, | 654 X86_MATCH_VENDOR_FEATURE(INTEL, X86_FEATURE_MWAIT, NULL), |
655 {} 656}; 657MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids); 658 659static int __init powerclamp_probe(void) 660{ 661 662 if (!x86_match_cpu(intel_powerclamp_ids)) { --- 118 unchanged lines hidden --- | 655 {} 656}; 657MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids); 658 659static int __init powerclamp_probe(void) 660{ 661 662 if (!x86_match_cpu(intel_powerclamp_ids)) { --- 118 unchanged lines hidden --- |