e_powersaver.c (cb54b53adae70701bdd77d848cea4b9b39b61cf9) e_powersaver.c (d5b73cd870e2b049ef566aec2791dbf5fd26a7ec)
1/*
2 * Based on documentation provided by Dave Jones. Thanks!
3 *
4 * Licensed under the terms of the GNU GPL License version 2.
5 *
6 * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous*
7 */
8

--- 40 unchanged lines hidden (view full) ---

49#if defined CONFIG_ACPI_PROCESSOR || defined CONFIG_ACPI_PROCESSOR_MODULE
50static int ignore_acpi_limit;
51
52static struct acpi_processor_performance *eps_acpi_cpu_perf;
53
54/* Minimum necessary to get acpi_processor_get_bios_limit() working */
55static int eps_acpi_init(void)
56{
1/*
2 * Based on documentation provided by Dave Jones. Thanks!
3 *
4 * Licensed under the terms of the GNU GPL License version 2.
5 *
6 * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous*
7 */
8

--- 40 unchanged lines hidden (view full) ---

49#if defined CONFIG_ACPI_PROCESSOR || defined CONFIG_ACPI_PROCESSOR_MODULE
50static int ignore_acpi_limit;
51
52static struct acpi_processor_performance *eps_acpi_cpu_perf;
53
54/* Minimum necessary to get acpi_processor_get_bios_limit() working */
55static int eps_acpi_init(void)
56{
57 eps_acpi_cpu_perf = kzalloc(sizeof(struct acpi_processor_performance),
57 eps_acpi_cpu_perf = kzalloc(sizeof(*eps_acpi_cpu_perf),
58 GFP_KERNEL);
59 if (!eps_acpi_cpu_perf)
60 return -ENOMEM;
61
62 if (!zalloc_cpumask_var(&eps_acpi_cpu_perf->shared_cpu_map,
63 GFP_KERNEL)) {
64 kfree(eps_acpi_cpu_perf);
65 eps_acpi_cpu_perf = NULL;

--- 295 unchanged lines hidden (view full) ---

361
362 /* Calc number of p-states supported */
363 if (brand == EPS_BRAND_C7M)
364 states = max_multiplier - min_multiplier + 1;
365 else
366 states = 2;
367
368 /* Allocate private data and frequency table for current cpu */
58 GFP_KERNEL);
59 if (!eps_acpi_cpu_perf)
60 return -ENOMEM;
61
62 if (!zalloc_cpumask_var(&eps_acpi_cpu_perf->shared_cpu_map,
63 GFP_KERNEL)) {
64 kfree(eps_acpi_cpu_perf);
65 eps_acpi_cpu_perf = NULL;

--- 295 unchanged lines hidden (view full) ---

361
362 /* Calc number of p-states supported */
363 if (brand == EPS_BRAND_C7M)
364 states = max_multiplier - min_multiplier + 1;
365 else
366 states = 2;
367
368 /* Allocate private data and frequency table for current cpu */
369 centaur = kzalloc(sizeof(struct eps_cpu_data)
369 centaur = kzalloc(sizeof(*centaur)
370 + (states + 1) * sizeof(struct cpufreq_frequency_table),
371 GFP_KERNEL);
372 if (!centaur)
373 return -ENOMEM;
374 eps_cpu[0] = centaur;
375
376 /* Copy basic values */
377 centaur->fsb = fsb;

--- 107 unchanged lines hidden ---
370 + (states + 1) * sizeof(struct cpufreq_frequency_table),
371 GFP_KERNEL);
372 if (!centaur)
373 return -ENOMEM;
374 eps_cpu[0] = centaur;
375
376 /* Copy basic values */
377 centaur->fsb = fsb;

--- 107 unchanged lines hidden ---