]> Git Repo - J-u-boot.git/blobdiff - lib/acpi/acpigen.c
Revert "acpi_table: Fix coverity defect in acpi_write_spcr"
[J-u-boot.git] / lib / acpi / acpigen.c
index ecff5a50d5044573491ec383a8aefebb1c63137c..fa9dad32a3fecf5e7ad43b6a373b05a2b66cc0f9 100644 (file)
@@ -361,6 +361,17 @@ void acpigen_write_processor(struct acpi_ctx *ctx, uint cpuindex,
        acpigen_emit_byte(ctx, pblock_len);
 }
 
+void acpigen_write_processor_device(struct acpi_ctx *ctx, uint cpuindex)
+{
+       char pscope[16];
+
+       snprintf(pscope, sizeof(pscope), ACPI_CPU_STRING, cpuindex);
+       acpigen_write_device(ctx, pscope);
+       acpigen_write_name_string(ctx, "_HID", "ACPI0007");
+       acpigen_write_name_integer(ctx, "_UID", cpuindex);
+       acpigen_pop_len(ctx); /* Device */
+}
+
 void acpigen_write_processor_package(struct acpi_ctx *ctx,
                                     const char *const name,
                                     const uint first_core,
This page took 0.023925 seconds and 4 git commands to generate.