diff options
| -rw-r--r-- | Documentation/sysctl/kernel.txt | 10 | ||||
| -rw-r--r-- | include/linux/acpi.h | 3 | ||||
| -rw-r--r-- | include/linux/sysctl.h | 1 | ||||
| -rw-r--r-- | kernel/sysctl.c | 16 |
4 files changed, 25 insertions, 5 deletions
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt index 9f11d36a8c1..b0c7ab93dcb 100644 --- a/Documentation/sysctl/kernel.txt +++ b/Documentation/sysctl/kernel.txt | |||
| @@ -16,6 +16,7 @@ before actually making adjustments. | |||
| 16 | 16 | ||
| 17 | Currently, these files might (depending on your configuration) | 17 | Currently, these files might (depending on your configuration) |
| 18 | show up in /proc/sys/kernel: | 18 | show up in /proc/sys/kernel: |
| 19 | - acpi_video_flags | ||
| 19 | - acct | 20 | - acct |
| 20 | - core_pattern | 21 | - core_pattern |
| 21 | - core_uses_pid | 22 | - core_uses_pid |
| @@ -57,6 +58,15 @@ show up in /proc/sys/kernel: | |||
| 57 | 58 | ||
| 58 | ============================================================== | 59 | ============================================================== |
| 59 | 60 | ||
| 61 | acpi_video_flags: | ||
| 62 | |||
| 63 | flags | ||
| 64 | |||
| 65 | See Doc*/kernel/power/video.txt, it allows mode of video boot to be | ||
| 66 | set during run time. | ||
| 67 | |||
| 68 | ============================================================== | ||
| 69 | |||
| 60 | acct: | 70 | acct: |
| 61 | 71 | ||
| 62 | highwater lowwater frequency | 72 | highwater lowwater frequency |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 84d3d9f034c..d3bc25e6d27 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -427,7 +427,8 @@ extern int acpi_mp_config; | |||
| 427 | extern struct acpi_table_mcfg_config *pci_mmcfg_config; | 427 | extern struct acpi_table_mcfg_config *pci_mmcfg_config; |
| 428 | extern int pci_mmcfg_config_num; | 428 | extern int pci_mmcfg_config_num; |
| 429 | 429 | ||
| 430 | extern int sbf_port ; | 430 | extern int sbf_port; |
| 431 | extern unsigned long acpi_video_flags; | ||
| 431 | 432 | ||
| 432 | #else /* !CONFIG_ACPI */ | 433 | #else /* !CONFIG_ACPI */ |
| 433 | 434 | ||
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 32a4139c4ad..0e92bf7ec28 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
| @@ -146,6 +146,7 @@ enum | |||
| 146 | KERN_RANDOMIZE=68, /* int: randomize virtual address space */ | 146 | KERN_RANDOMIZE=68, /* int: randomize virtual address space */ |
| 147 | KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */ | 147 | KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */ |
| 148 | KERN_SPIN_RETRY=70, /* int: number of spinlock retries */ | 148 | KERN_SPIN_RETRY=70, /* int: number of spinlock retries */ |
| 149 | KERN_ACPI_VIDEO_FLAGS=71, /* int: flags for setting up video after ACPI sleep */ | ||
| 149 | }; | 150 | }; |
| 150 | 151 | ||
| 151 | 152 | ||
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 7654d55c47f..ebc41bf22f1 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -44,14 +44,12 @@ | |||
| 44 | #include <linux/limits.h> | 44 | #include <linux/limits.h> |
| 45 | #include <linux/dcache.h> | 45 | #include <linux/dcache.h> |
| 46 | #include <linux/syscalls.h> | 46 | #include <linux/syscalls.h> |
| 47 | #include <linux/nfs_fs.h> | ||
| 48 | #include <linux/acpi.h> | ||
| 47 | 49 | ||
| 48 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
| 49 | #include <asm/processor.h> | 51 | #include <asm/processor.h> |
| 50 | 52 | ||
| 51 | #ifdef CONFIG_ROOT_NFS | ||
| 52 | #include <linux/nfs_fs.h> | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #if defined(CONFIG_SYSCTL) | 53 | #if defined(CONFIG_SYSCTL) |
| 56 | 54 | ||
| 57 | /* External variables not in a header file. */ | 55 | /* External variables not in a header file. */ |
| @@ -656,6 +654,16 @@ static ctl_table kern_table[] = { | |||
| 656 | .proc_handler = &proc_dointvec, | 654 | .proc_handler = &proc_dointvec, |
| 657 | }, | 655 | }, |
| 658 | #endif | 656 | #endif |
| 657 | #ifdef CONFIG_ACPI_SLEEP | ||
| 658 | { | ||
| 659 | .ctl_name = KERN_ACPI_VIDEO_FLAGS, | ||
| 660 | .procname = "acpi_video_flags", | ||
| 661 | .data = &acpi_video_flags, | ||
| 662 | .maxlen = sizeof (unsigned long), | ||
| 663 | .mode = 0644, | ||
| 664 | .proc_handler = &proc_dointvec, | ||
| 665 | }, | ||
| 666 | #endif | ||
| 659 | { .ctl_name = 0 } | 667 | { .ctl_name = 0 } |
| 660 | }; | 668 | }; |
| 661 | 669 | ||
