pcc-cpufreq.c (4bdc0d676a643140bdf17dbf7eafedee3d496a3c) pcc-cpufreq.c (1e4f63aecb53e48468661e922fc2fa3b83e55722)
1/*
2 * pcc-cpufreq.c - Processor Clocking Control firmware cpufreq interface
3 *
4 * Copyright (C) 2009 Red Hat, Matthew Garrett <mjg@redhat.com>
5 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
6 * Nagananda Chumbalkar <nagananda.chumbalkar@hp.com>
7 *
8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

104
105struct pcc_cpu {
106 u32 input_offset;
107 u32 output_offset;
108};
109
110static struct pcc_cpu __percpu *pcc_cpu_info;
111
1/*
2 * pcc-cpufreq.c - Processor Clocking Control firmware cpufreq interface
3 *
4 * Copyright (C) 2009 Red Hat, Matthew Garrett <mjg@redhat.com>
5 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
6 * Nagananda Chumbalkar <nagananda.chumbalkar@hp.com>
7 *
8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

104
105struct pcc_cpu {
106 u32 input_offset;
107 u32 output_offset;
108};
109
110static struct pcc_cpu __percpu *pcc_cpu_info;
111
112static int pcc_cpufreq_verify(struct cpufreq_policy *policy)
112static int pcc_cpufreq_verify(struct cpufreq_policy_data *policy)
113{
114 cpufreq_verify_within_cpu_limits(policy);
115 return 0;
116}
117
118static inline void pcc_cmd(void)
119{
120 u64 doorbell_value;

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

440 mem_resource->translation_offset,
441 mem_resource->address_length);
442
443 if (mem_resource->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY) {
444 ret = -ENODEV;
445 goto out_free;
446 }
447
113{
114 cpufreq_verify_within_cpu_limits(policy);
115 return 0;
116}
117
118static inline void pcc_cmd(void)
119{
120 u64 doorbell_value;

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

440 mem_resource->translation_offset,
441 mem_resource->address_length);
442
443 if (mem_resource->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY) {
444 ret = -ENODEV;
445 goto out_free;
446 }
447
448 pcch_virt_addr = ioremap(mem_resource->minimum,
448 pcch_virt_addr = ioremap_nocache(mem_resource->minimum,
449 mem_resource->address_length);
450 if (pcch_virt_addr == NULL) {
451 pr_debug("probe: could not map shared mem region\n");
452 ret = -ENOMEM;
453 goto out_free;
454 }
455 pcch_hdr = pcch_virt_addr;
456

--- 176 unchanged lines hidden ---
449 mem_resource->address_length);
450 if (pcch_virt_addr == NULL) {
451 pr_debug("probe: could not map shared mem region\n");
452 ret = -ENOMEM;
453 goto out_free;
454 }
455 pcch_hdr = pcch_virt_addr;
456

--- 176 unchanged lines hidden ---