aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables/tbinstal.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-10-03 00:00:00 -0400
committerLen Brown <len.brown@intel.com>2006-04-01 01:26:39 -0500
commit8313524a0d466f451a62709aaedf988d8257b21c (patch)
treed612fc796ae07d8a39542c95eec0f5169c9f64eb /drivers/acpi/tables/tbinstal.c
parentea936b78f46cbe089a4ac363e1682dee7d427096 (diff)
ACPI: ACPICA 20060310
Tagged all external interfaces to the subsystem with the new ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL macro. The default definition is NULL. Added the ACPI_THREAD_ID type for the return value from acpi_os_get_thread_id(). This allows the host to define this as necessary to simplify kernel integration. The default definition is ACPI_NATIVE_UINT. Valery Podrezov fixed two interpreter problems related to error processing, the deletion of objects, and placing invalid pointers onto the internal operator result stack. http://bugzilla.kernel.org/show_bug.cgi?id=6028 http://bugzilla.kernel.org/show_bug.cgi?id=6151 Increased the reference count threshold where a warning is emitted for large reference counts in order to eliminate unnecessary warnings on systems with large namespaces (especially 64-bit.) Increased the value from 0x400 to 0x800. Due to universal disagreement as to the meaning of the 'c' in the calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/tables/tbinstal.c')
-rw-r--r--drivers/acpi/tables/tbinstal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/tables/tbinstal.c b/drivers/acpi/tables/tbinstal.c
index ec2cb978b7c4..ce57a195577a 100644
--- a/drivers/acpi/tables/tbinstal.c
+++ b/drivers/acpi/tables/tbinstal.c
@@ -248,7 +248,7 @@ acpi_tb_init_table_descriptor(acpi_table_type table_type,
248 248
249 /* Allocate a descriptor for this table */ 249 /* Allocate a descriptor for this table */
250 250
251 table_desc = ACPI_MEM_CALLOCATE(sizeof(struct acpi_table_desc)); 251 table_desc = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_table_desc));
252 if (!table_desc) { 252 if (!table_desc) {
253 return_ACPI_STATUS(AE_NO_MEMORY); 253 return_ACPI_STATUS(AE_NO_MEMORY);
254 } 254 }
@@ -275,7 +275,7 @@ acpi_tb_init_table_descriptor(acpi_table_type table_type,
275 * at this location, so return an error. 275 * at this location, so return an error.
276 */ 276 */
277 if (list_head->next) { 277 if (list_head->next) {
278 ACPI_MEM_FREE(table_desc); 278 ACPI_FREE(table_desc);
279 return_ACPI_STATUS(AE_ALREADY_EXISTS); 279 return_ACPI_STATUS(AE_ALREADY_EXISTS);
280 } 280 }
281 281
@@ -472,7 +472,7 @@ void acpi_tb_delete_single_table(struct acpi_table_desc *table_desc)
472 472
473 case ACPI_MEM_ALLOCATED: 473 case ACPI_MEM_ALLOCATED:
474 474
475 ACPI_MEM_FREE(table_desc->pointer); 475 ACPI_FREE(table_desc->pointer);
476 break; 476 break;
477 477
478 case ACPI_MEM_MAPPED: 478 case ACPI_MEM_MAPPED:
@@ -531,7 +531,7 @@ struct acpi_table_desc *acpi_tb_uninstall_table(struct acpi_table_desc
531 /* Free the table descriptor */ 531 /* Free the table descriptor */
532 532
533 next_desc = table_desc->next; 533 next_desc = table_desc->next;
534 ACPI_MEM_FREE(table_desc); 534 ACPI_FREE(table_desc);
535 535
536 /* Return pointer to the next descriptor */ 536 /* Return pointer to the next descriptor */
537 537