Author: bonefish Date: 2010-02-28 16:39:44 +0100 (Sun, 28 Feb 2010) New Revision: 35657 Changeset: http://dev.haiku-os.org/changeset/35657/haiku Modified: haiku/trunk/src/system/kernel/system_info.cpp Log: dump_info(): We can't use use cpu_get_active_time() in the kernel debugger as it tries to acquire the thread spinlock. Modified: haiku/trunk/src/system/kernel/system_info.cpp =================================================================== --- haiku/trunk/src/system/kernel/system_info.cpp 2010-02-28 12:35:49 UTC (rev 35656) +++ haiku/trunk/src/system/kernel/system_info.cpp 2010-02-28 15:39:44 UTC (rev 35657) @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2008, Haiku, Inc. + * Copyright (c) 2004-2010, Haiku, Inc. * Distributed under the terms of the MIT license. * * Authors: @@ -49,15 +49,16 @@ kprintf("cpu count: %ld, active times:\n", smp_get_num_cpus()); for (int32 i = 0; i < smp_get_num_cpus(); i++) - kprintf(" [%ld] %Ld\n", i + 1, cpu_get_active_time(i)); + kprintf(" [%ld] %Ld\n", i + 1, gCPU[i].active_time); // ToDo: Add page_faults - kprintf("pages:\t\t%ld (%ld max)\n", vm_page_num_pages() - vm_page_num_free_pages(), - vm_page_num_pages()); + kprintf("pages:\t\t%ld (%ld max)\n", + vm_page_num_pages() - vm_page_num_free_pages(), vm_page_num_pages()); kprintf("sems:\t\t%ld (%ld max)\n", sem_used_sems(), sem_max_sems()); kprintf("ports:\t\t%ld (%ld max)\n", port_used_ports(), port_max_ports()); - kprintf("threads:\t%ld (%ld max)\n", thread_used_threads(), thread_max_threads()); + kprintf("threads:\t%ld (%ld max)\n", thread_used_threads(), + thread_max_threads()); kprintf("teams:\t\t%ld (%ld max)\n", team_used_teams(), team_max_teams()); return 0;