turbo.h 453 B

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