~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/acpi/processor_core.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define _COMPONENT              ACPI_PROCESSOR_COMPONENT
20
20
ACPI_MODULE_NAME("processor_core");
21
21
 
22
 
static int set_no_mwait(const struct dmi_system_id *id)
 
22
static int __init set_no_mwait(const struct dmi_system_id *id)
23
23
{
24
24
        printk(KERN_NOTICE PREFIX "%s detected - "
25
25
                "disabling mwait for CPU C-states\n", id->ident);
27
27
        return 0;
28
28
}
29
29
 
30
 
static struct dmi_system_id __cpuinitdata processor_idle_dmi_table[] = {
 
30
static struct dmi_system_id __initdata processor_idle_dmi_table[] = {
31
31
        {
32
32
        set_no_mwait, "Extensa 5220", {
33
33
        DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
183
183
EXPORT_SYMBOL_GPL(acpi_get_cpuid);
184
184
#endif
185
185
 
186
 
static bool processor_physically_present(acpi_handle handle)
 
186
static bool __init processor_physically_present(acpi_handle handle)
187
187
{
188
188
        int cpuid, type;
189
189
        u32 acpi_id;
223
223
        return true;
224
224
}
225
225
 
226
 
static void acpi_set_pdc_bits(u32 *buf)
 
226
static void __cpuinit acpi_set_pdc_bits(u32 *buf)
227
227
{
228
228
        buf[0] = ACPI_PDC_REVISION_ID;
229
229
        buf[1] = 1;
235
235
        arch_acpi_set_pdc_bits(buf);
236
236
}
237
237
 
238
 
static struct acpi_object_list *acpi_processor_alloc_pdc(void)
 
238
static struct acpi_object_list *__cpuinit acpi_processor_alloc_pdc(void)
239
239
{
240
240
        struct acpi_object_list *obj_list;
241
241
        union acpi_object *obj;
278
278
 * _PDC is required for a BIOS-OS handshake for most of the newer
279
279
 * ACPI processor features.
280
280
 */
281
 
static int
 
281
static int __cpuinit
282
282
acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in)
283
283
{
284
284
        acpi_status status = AE_OK;
306
306
        return status;
307
307
}
308
308
 
309
 
void acpi_processor_set_pdc(acpi_handle handle)
 
309
void __cpuinit acpi_processor_set_pdc(acpi_handle handle)
310
310
{
311
311
        struct acpi_object_list *obj_list;
312
312
 
323
323
        kfree(obj_list->pointer);
324
324
        kfree(obj_list);
325
325
}
326
 
EXPORT_SYMBOL_GPL(acpi_processor_set_pdc);
327
326
 
328
 
static acpi_status
 
327
static acpi_status __init
329
328
early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv)
330
329
{
331
330
        if (processor_physically_present(handle) == false)