diff options
| -rw-r--r-- | drivers/acpi/osl.c | 20 | ||||
| -rw-r--r-- | include/acpi/acpiosxf.h | 6 |
2 files changed, 0 insertions, 26 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 63060a17f7ed..99d6c5128280 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
| @@ -890,26 +890,6 @@ u32 acpi_os_get_line(char *buffer) | |||
| 890 | } | 890 | } |
| 891 | #endif /* ACPI_FUTURE_USAGE */ | 891 | #endif /* ACPI_FUTURE_USAGE */ |
| 892 | 892 | ||
| 893 | /* Assumes no unreadable holes inbetween */ | ||
| 894 | u8 acpi_os_readable(void *ptr, acpi_size len) | ||
| 895 | { | ||
| 896 | #if defined(__i386__) || defined(__x86_64__) | ||
| 897 | char tmp; | ||
| 898 | return !__get_user(tmp, (char __user *)ptr) | ||
| 899 | && !__get_user(tmp, (char __user *)ptr + len - 1); | ||
| 900 | #endif | ||
| 901 | return 1; | ||
| 902 | } | ||
| 903 | |||
| 904 | #ifdef ACPI_FUTURE_USAGE | ||
| 905 | u8 acpi_os_writable(void *ptr, acpi_size len) | ||
| 906 | { | ||
| 907 | /* could do dummy write (racy) or a kernel page table lookup. | ||
| 908 | The later may be difficult at early boot when kmap doesn't work yet. */ | ||
| 909 | return 1; | ||
| 910 | } | ||
| 911 | #endif | ||
| 912 | |||
| 913 | acpi_status acpi_os_signal(u32 function, void *info) | 893 | acpi_status acpi_os_signal(u32 function, void *info) |
| 914 | { | 894 | { |
| 915 | switch (function) { | 895 | switch (function) { |
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index 781394b9efe0..2785058c82ab 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
| @@ -240,12 +240,6 @@ acpi_status | |||
| 240 | acpi_os_validate_address(u8 space_id, | 240 | acpi_os_validate_address(u8 space_id, |
| 241 | acpi_physical_address address, acpi_size length); | 241 | acpi_physical_address address, acpi_size length); |
| 242 | 242 | ||
| 243 | u8 acpi_os_readable(void *pointer, acpi_size length); | ||
| 244 | |||
| 245 | #ifdef ACPI_FUTURE_USAGE | ||
| 246 | u8 acpi_os_writable(void *pointer, acpi_size length); | ||
| 247 | #endif | ||
| 248 | |||
| 249 | u64 acpi_os_get_timer(void); | 243 | u64 acpi_os_get_timer(void); |
| 250 | 244 | ||
| 251 | acpi_status acpi_os_signal(u32 function, void *info); | 245 | acpi_status acpi_os_signal(u32 function, void *info); |
