Commit 90e20da1 authored by Andy Grover's avatar Andy Grover

Remove obsolete OSL functions (Kochi Takayoshi)

parent 7fae3db3
...@@ -261,10 +261,6 @@ acpi_os_writable ( ...@@ -261,10 +261,6 @@ acpi_os_writable (
void *pointer, void *pointer,
u32 length); u32 length);
u32
acpi_os_get_timer (
void);
acpi_status acpi_status
acpi_os_signal ( acpi_os_signal (
u32 function, u32 function,
...@@ -284,10 +280,6 @@ acpi_os_vprintf ( ...@@ -284,10 +280,6 @@ acpi_os_vprintf (
const NATIVE_CHAR *format, const NATIVE_CHAR *format,
va_list args); va_list args);
void
acpi_os_redirect_output (
void *destination);
/* /*
* Debug input * Debug input
...@@ -298,16 +290,4 @@ acpi_os_get_line ( ...@@ -298,16 +290,4 @@ acpi_os_get_line (
NATIVE_CHAR *buffer); NATIVE_CHAR *buffer);
/*
* Debug
*/
void
acpi_os_dbg_assert(
void *failed_assertion,
void *file_name,
u32 line_number,
NATIVE_CHAR *message);
#endif /* __ACPIOSXF_H__ */ #endif /* __ACPIOSXF_H__ */
...@@ -134,16 +134,6 @@ acpi_os_allocate(ACPI_SIZE size) ...@@ -134,16 +134,6 @@ acpi_os_allocate(ACPI_SIZE size)
return kmalloc(size, GFP_KERNEL); return kmalloc(size, GFP_KERNEL);
} }
void *
acpi_os_callocate(ACPI_SIZE size)
{
void *ptr = acpi_os_allocate(size);
if (ptr)
memset(ptr, 0, size);
return ptr;
}
void void
acpi_os_free(void *ptr) acpi_os_free(void *ptr)
{ {
...@@ -523,37 +513,6 @@ acpi_os_read_pci_configuration ( ...@@ -523,37 +513,6 @@ acpi_os_read_pci_configuration (
#endif /*CONFIG_ACPI_PCI*/ #endif /*CONFIG_ACPI_PCI*/
acpi_status
acpi_os_load_module (
char *module_name)
{
ACPI_FUNCTION_TRACE ("os_load_module");
if (!module_name)
return_ACPI_STATUS (AE_BAD_PARAMETER);
if (request_module(module_name) < 0) {
ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Unable to load module [%s].\n", module_name));
return_ACPI_STATUS (AE_ERROR);
}
return_ACPI_STATUS (AE_OK);
}
acpi_status
acpi_os_unload_module (
char *module_name)
{
if (!module_name)
return AE_BAD_PARAMETER;
/* TODO: How on Linux? */
/* this is done automatically for all modules with
use_count = 0, I think. see: MOD_INC_USE_COUNT -ASG */
return AE_OK;
}
/* /*
* See acpi_os_queue_for_execution() * See acpi_os_queue_for_execution()
...@@ -695,9 +654,10 @@ acpi_os_create_semaphore( ...@@ -695,9 +654,10 @@ acpi_os_create_semaphore(
ACPI_FUNCTION_TRACE ("os_create_semaphore"); ACPI_FUNCTION_TRACE ("os_create_semaphore");
sem = acpi_os_callocate(sizeof(struct semaphore)); sem = acpi_os_allocate(sizeof(struct semaphore));
if (!sem) if (!sem)
return_ACPI_STATUS (AE_NO_MEMORY); return_ACPI_STATUS (AE_NO_MEMORY);
memset(sem, 0, sizeof(struct semaphore));
sema_init(sem, initial_units); sema_init(sem, initial_units);
...@@ -913,12 +873,3 @@ acpi_os_signal ( ...@@ -913,12 +873,3 @@ acpi_os_signal (
return AE_OK; return AE_OK;
} }
acpi_status
acpi_os_breakpoint(NATIVE_CHAR *msg)
{
acpi_os_printf("breakpoint: %s", msg);
return AE_OK;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment