The patch titled acpi: expose _SUN in /proc/acpi/processor/<...>/info has been added to the -mm tree. Its filename is acpi-expose-_sun-in-proc-acpi-processor-info.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: acpi: expose _SUN in /proc/acpi/processor/<...>/info From: Alex Chiang <achiang@xxxxxx> On platforms that provide _SUN for the processor object, higher level software can consume the data to learn physical topology information, so let's expose it. Platforms that do not implement _SUN will see <not supported>. Signed-off-by: Alex Chiang <achiang@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/processor_core.c | 11 +++++++++++ include/acpi/processor.h | 1 + 2 files changed, 12 insertions(+) diff -puN drivers/acpi/processor_core.c~acpi-expose-_sun-in-proc-acpi-processor-info drivers/acpi/processor_core.c --- a/drivers/acpi/processor_core.c~acpi-expose-_sun-in-proc-acpi-processor-info +++ a/drivers/acpi/processor_core.c @@ -302,6 +302,11 @@ static int acpi_processor_info_seq_show( pr->flags.throttling ? "yes" : "no", pr->flags.limit ? "yes" : "no"); + if (pr->sun == -1) + seq_printf(seq, "slot user number: <not supported>\n"); + else + seq_printf(seq, "slot user number: %d\n", (int)pr->sun); + end: return 0; } @@ -590,6 +595,12 @@ static int acpi_processor_get_info(struc ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Processor [%d:%d]\n", pr->id, pr->acpi_id)); + status = acpi_evaluate_object(pr->handle, "_SUN", NULL, &buffer); + if (ACPI_FAILURE(status)) + object.integer.value = -1; + + pr->sun = object.integer.value; + if (!object.processor.pblk_address) ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No PBLK (NULL address)\n")); else if (object.processor.pblk_length != 6) diff -puN include/acpi/processor.h~acpi-expose-_sun-in-proc-acpi-processor-info include/acpi/processor.h --- a/include/acpi/processor.h~acpi-expose-_sun-in-proc-acpi-processor-info +++ a/include/acpi/processor.h @@ -210,6 +210,7 @@ struct acpi_processor { u32 acpi_id; u32 id; u32 pblk; + acpi_native_int sun; int performance_platform_limit; int throttling_platform_limit; /* 0 - states 0..n-th state available */ _ Patches currently in -mm which might be from achiang@xxxxxx are acpi-expose-_sun-in-proc-acpi-processor-info.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html