Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43075
b: refs/heads/master
c: 6020c8f
h: refs/heads/master
i:
  43073: 0916ee8
  43071: bfe9453
v: v3
  • Loading branch information
Rusty Russell authored and Andi Kleen committed Dec 7, 2006
1 parent 032b969 commit 0a4f40d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bbf54725467d604698721384d858b5983b87e8f
refs/heads/master: 6020c8f315709a508b027ef6749e85b125190947
3 changes: 2 additions & 1 deletion trunk/arch/i386/kernel/apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
#include <asm/uaccess.h>
#include <asm/desc.h>
#include <asm/i8253.h>
#include <asm/paravirt.h>

#include "io_ports.h"

Expand Down Expand Up @@ -2235,7 +2236,7 @@ static int __init apm_init(void)

dmi_check_system(apm_dmi_table);

if (apm_info.bios.version == 0) {
if (apm_info.bios.version == 0 || paravirt_enabled()) {
printk(KERN_INFO "apm: BIOS not found.\n");
return -ENODEV;
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/pnp/pnpbios/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ static int __init pnpbios_init(void)
if (check_legacy_ioport(PNPBIOS_BASE))
return -ENODEV;
#endif
if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table)) {
if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table) ||
paravirt_enabled()) {
printk(KERN_INFO "PnPBIOS: Disabled\n");
return -ENODEV;
}
Expand Down

0 comments on commit 0a4f40d

Please sign in to comment.