From 9da9002a35df80d50a7c3f5033c899208db6acab Mon Sep 17 00:00:00 2001 From: "Jason S. McMullan" Date: Wed, 21 Aug 2013 00:30:36 -0400 Subject: [PATCH] arch/all-unix: Use default KrnGetCPUCount() implementation Signed-off-by: Jason S. McMullan --- AROS/arch/all-unix/kernel/smp.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/AROS/arch/all-unix/kernel/smp.c b/AROS/arch/all-unix/kernel/smp.c index 799092d..80d74b8 100644 --- a/AROS/arch/all-unix/kernel/smp.c +++ b/AROS/arch/all-unix/kernel/smp.c @@ -71,15 +71,10 @@ int smp_Start(void) struct KernelInterface *iface = pd->iface; sigset_t oldset, newset; ULONG cpu; - ULONG cpus; - cpus = LibGetTagData(KRN_MaxCPUs, 0, BootMsg); - if (cpus == 0) - cpus = 1; - /* Initialize the boot CPU's per-thread data */ - pd->threads = cpus; - pd->thread = AllocMem(sizeof(struct KrnUnixThread)*cpus, MEMF_ANY | MEMF_CLEAR); + pd->threads = KrnGetCPUCount(); + pd->thread = AllocMem(sizeof(struct KrnUnixThread)*pd->threads, MEMF_ANY | MEMF_CLEAR); /* Block all signals.. * NOTE: For SMP, sigprocmask is actually pointing to pthread_sigmask, -- 2.1.4