Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
misc.c
Go to the documentation of this file.
1 #if defined(__i386__) || defined(__x86_64__)
2 
3 #include "helpers/helpers.h"
4 
5 int cpufreq_has_boost_support(unsigned int cpu, int *support, int *active,
6  int *states)
7 {
9  int ret;
10 
11  *support = *active = *states = 0;
12 
13  ret = get_cpu_info(0, &cpu_info);
14  if (ret)
15  return ret;
16 
18  *support = 1;
19  amd_pci_get_num_boost_states(active, states);
20  if (ret <= 0)
21  return ret;
22  *support = 1;
24  *support = *active = 1;
25  return 0;
26 }
27 #endif /* #if defined(__i386__) || defined(__x86_64__) */