X-Git-Url: https://git.ti.com/gitweb?p=ipc%2Fipcdev.git;a=blobdiff_plain;f=linux%2Fsrc%2Fdaemon%2FMultiProc_daemon.c;h=a551a4d3480f1094c42ed51c63fa466cbef1c078;hp=55cbb10c8e346bd1004225f0a44cc33328d061be;hb=6a06cd410350064ec17c876a6852c8334ae820b6;hpb=19c8290c37cbd0bd5fb2d720fab1955803b55ab4 diff --git a/linux/src/daemon/MultiProc_daemon.c b/linux/src/daemon/MultiProc_daemon.c index 55cbb10..a551a4d 100644 --- a/linux/src/daemon/MultiProc_daemon.c +++ b/linux/src/daemon/MultiProc_daemon.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Texas Instruments Incorporated + * Copyright (c) 2013-2015 Texas Instruments Incorporated - http://www.ti.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -37,9 +37,8 @@ * */ - -/* Standard headers */ -#include +/* Standard IPC headers */ +#include /* Linux specific header files */ #include @@ -49,6 +48,9 @@ #include #include <_MultiProc.h> +/* for Logging */ +#include <_lad.h> + /* ============================================================================= * APIs @@ -57,9 +59,20 @@ /* Get the default configuration for the MultiProc module. */ Void MultiProc_getConfig (MultiProc_Config * cfg) { + int i; + UInt16 baseId; assert (cfg != NULL); /* Setup MultiProc config */ memcpy (cfg, &_MultiProc_cfg, sizeof(MultiProc_Config)); + + LOG1("MultiProc_getConfig() - %d procs\n", _MultiProc_cfg.numProcessors); + LOG1("# processors in cluster: %d\n", _MultiProc_cfg.numProcsInCluster); + baseId = _MultiProc_cfg.baseIdOfCluster; + LOG1("cluster baseId: %d\n", baseId); + + for (i = 0; i < _MultiProc_cfg.numProcsInCluster; i++) { + LOG2("\tProcId %d - \"%s\"\n", baseId + i, _MultiProc_cfg.nameList[i]); + } }