turbo.h 453 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * From coreboot file of the same name
  4. *
  5. * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
  6. */
  7. #ifndef _ASM_TURBO_H
  8. #define _ASM_TURBO_H
  9. #define CPUID_LEAF_PM 6
  10. #define PM_CAP_TURBO_MODE (1 << 1)
  11. enum {
  12. TURBO_UNKNOWN,
  13. TURBO_UNAVAILABLE,
  14. TURBO_DISABLED,
  15. TURBO_ENABLED,
  16. };
  17. /* Return current turbo state */
  18. int turbo_get_state(void);
  19. /* Enable turbo */
  20. void turbo_enable(void);
  21. #endif