aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-06-27 00:41:40 -0400
committerLen Brown <len.brown@intel.com>2006-06-27 00:41:40 -0400
commitd550d98d3317378d93a4869db204725d270ec812 (patch)
tree958a8578babc6f9955f91e21253d1d1b847985ff /drivers/acpi/osl.c
parentd7fa2589bbe7ab53fd5eb20e8c7e388d5aff6f16 (diff)
ACPI: delete tracing macros from drivers/acpi/*.c
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c35
1 files changed, 14 insertions, 21 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 7d4cc122b026..8e46d1b39491 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -587,19 +587,18 @@ static void acpi_os_execute_deferred(void *context)
587{ 587{
588 struct acpi_os_dpc *dpc = NULL; 588 struct acpi_os_dpc *dpc = NULL;
589 589
590 ACPI_FUNCTION_TRACE("os_execute_deferred");
591 590
592 dpc = (struct acpi_os_dpc *)context; 591 dpc = (struct acpi_os_dpc *)context;
593 if (!dpc) { 592 if (!dpc) {
594 printk(KERN_ERR PREFIX "Invalid (NULL) context\n"); 593 printk(KERN_ERR PREFIX "Invalid (NULL) context\n");
595 return_VOID; 594 return;
596 } 595 }
597 596
598 dpc->function(dpc->context); 597 dpc->function(dpc->context);
599 598
600 kfree(dpc); 599 kfree(dpc);
601 600
602 return_VOID; 601 return;
603} 602}
604 603
605static int acpi_os_execute_thread(void *context) 604static int acpi_os_execute_thread(void *context)
@@ -693,7 +692,6 @@ acpi_status acpi_os_create_lock(acpi_handle * out_handle)
693{ 692{
694 spinlock_t *lock_ptr; 693 spinlock_t *lock_ptr;
695 694
696 ACPI_FUNCTION_TRACE("os_create_lock");
697 695
698 lock_ptr = acpi_os_allocate(sizeof(spinlock_t)); 696 lock_ptr = acpi_os_allocate(sizeof(spinlock_t));
699 697
@@ -703,7 +701,7 @@ acpi_status acpi_os_create_lock(acpi_handle * out_handle)
703 701
704 *out_handle = lock_ptr; 702 *out_handle = lock_ptr;
705 703
706 return_ACPI_STATUS(AE_OK); 704 return AE_OK;
707} 705}
708 706
709/* 707/*
@@ -711,13 +709,12 @@ acpi_status acpi_os_create_lock(acpi_handle * out_handle)
711 */ 709 */
712void acpi_os_delete_lock(acpi_handle handle) 710void acpi_os_delete_lock(acpi_handle handle)
713{ 711{
714 ACPI_FUNCTION_TRACE("os_create_lock");
715 712
716 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Deleting spinlock[%p].\n", handle)); 713 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Deleting spinlock[%p].\n", handle));
717 714
718 acpi_os_free(handle); 715 acpi_os_free(handle);
719 716
720 return_VOID; 717 return;
721} 718}
722 719
723acpi_status 720acpi_status
@@ -725,11 +722,10 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)
725{ 722{
726 struct semaphore *sem = NULL; 723 struct semaphore *sem = NULL;
727 724
728 ACPI_FUNCTION_TRACE("os_create_semaphore");
729 725
730 sem = acpi_os_allocate(sizeof(struct semaphore)); 726 sem = acpi_os_allocate(sizeof(struct semaphore));
731 if (!sem) 727 if (!sem)
732 return_ACPI_STATUS(AE_NO_MEMORY); 728 return AE_NO_MEMORY;
733 memset(sem, 0, sizeof(struct semaphore)); 729 memset(sem, 0, sizeof(struct semaphore));
734 730
735 sema_init(sem, initial_units); 731 sema_init(sem, initial_units);
@@ -739,7 +735,7 @@ acpi_os_create_semaphore(u32 max_units, u32 initial_units, acpi_handle * handle)
739 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Creating semaphore[%p|%d].\n", 735 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Creating semaphore[%p|%d].\n",
740 *handle, initial_units)); 736 *handle, initial_units));
741 737
742 return_ACPI_STATUS(AE_OK); 738 return AE_OK;
743} 739}
744 740
745EXPORT_SYMBOL(acpi_os_create_semaphore); 741EXPORT_SYMBOL(acpi_os_create_semaphore);
@@ -755,17 +751,16 @@ acpi_status acpi_os_delete_semaphore(acpi_handle handle)
755{ 751{
756 struct semaphore *sem = (struct semaphore *)handle; 752 struct semaphore *sem = (struct semaphore *)handle;
757 753
758 ACPI_FUNCTION_TRACE("os_delete_semaphore");
759 754
760 if (!sem) 755 if (!sem)
761 return_ACPI_STATUS(AE_BAD_PARAMETER); 756 return AE_BAD_PARAMETER;
762 757
763 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Deleting semaphore[%p].\n", handle)); 758 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Deleting semaphore[%p].\n", handle));
764 759
765 acpi_os_free(sem); 760 acpi_os_free(sem);
766 sem = NULL; 761 sem = NULL;
767 762
768 return_ACPI_STATUS(AE_OK); 763 return AE_OK;
769} 764}
770 765
771EXPORT_SYMBOL(acpi_os_delete_semaphore); 766EXPORT_SYMBOL(acpi_os_delete_semaphore);
@@ -785,13 +780,12 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
785 struct semaphore *sem = (struct semaphore *)handle; 780 struct semaphore *sem = (struct semaphore *)handle;
786 int ret = 0; 781 int ret = 0;
787 782
788 ACPI_FUNCTION_TRACE("os_wait_semaphore");
789 783
790 if (!sem || (units < 1)) 784 if (!sem || (units < 1))
791 return_ACPI_STATUS(AE_BAD_PARAMETER); 785 return AE_BAD_PARAMETER;
792 786
793 if (units > 1) 787 if (units > 1)
794 return_ACPI_STATUS(AE_SUPPORT); 788 return AE_SUPPORT;
795 789
796 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Waiting for semaphore[%p|%d|%d]\n", 790 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Waiting for semaphore[%p|%d|%d]\n",
797 handle, units, timeout)); 791 handle, units, timeout));
@@ -850,7 +844,7 @@ acpi_status acpi_os_wait_semaphore(acpi_handle handle, u32 units, u16 timeout)
850 units, timeout)); 844 units, timeout));
851 } 845 }
852 846
853 return_ACPI_STATUS(status); 847 return status;
854} 848}
855 849
856EXPORT_SYMBOL(acpi_os_wait_semaphore); 850EXPORT_SYMBOL(acpi_os_wait_semaphore);
@@ -862,20 +856,19 @@ acpi_status acpi_os_signal_semaphore(acpi_handle handle, u32 units)
862{ 856{
863 struct semaphore *sem = (struct semaphore *)handle; 857 struct semaphore *sem = (struct semaphore *)handle;
864 858
865 ACPI_FUNCTION_TRACE("os_signal_semaphore");
866 859
867 if (!sem || (units < 1)) 860 if (!sem || (units < 1))
868 return_ACPI_STATUS(AE_BAD_PARAMETER); 861 return AE_BAD_PARAMETER;
869 862
870 if (units > 1) 863 if (units > 1)
871 return_ACPI_STATUS(AE_SUPPORT); 864 return AE_SUPPORT;
872 865
873 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Signaling semaphore[%p|%d]\n", handle, 866 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Signaling semaphore[%p|%d]\n", handle,
874 units)); 867 units));
875 868
876 up(sem); 869 up(sem);
877 870
878 return_ACPI_STATUS(AE_OK); 871 return AE_OK;
879} 872}
880 873
881EXPORT_SYMBOL(acpi_os_signal_semaphore); 874EXPORT_SYMBOL(acpi_os_signal_semaphore);