X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fmt_ss.h;h=cf9c32519630636adaefe3e6e861af88a5b2deb5;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=d4876e347d3fa12120b84886ad05342dafa83a65;hpb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;p=o-du%2Fl2.git diff --git a/src/mt/mt_ss.h b/src/mt/mt_ss.h index d4876e347..cf9c32519 100755 --- a/src/mt/mt_ss.h +++ b/src/mt/mt_ss.h @@ -63,7 +63,7 @@ #define SS_MAX_STSKS 5 #endif #else -#define SS_MAX_STSKS 4 +#define SS_MAX_STSKS 5 #endif #endif /* SS_MULTICORE_SUPPORT */ @@ -90,7 +90,7 @@ #ifdef SS_MULTICORE_SUPPORT #define SS_MAX_REGS SS_MAX_STSKS #else -#define SS_MAX_REGS 1 +#define SS_MAX_REGS 5 #endif #ifdef CMM_MAX_BKT_ENT @@ -133,8 +133,8 @@ #ifndef TENB_RTLIN_CHANGES #define SInitLock(l, t) pthread_mutex_init(l, NULL) #endif -/*extern U32 gt[128]; */ -/*#define SLock(l) (((gt[0x000000FF &((U32)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF &((U32)pthread_self())], MacGetTick()))?0:0)*/ +/*extern uint32_t gt[128]; */ +/*#define SLock(l) (((gt[0x000000FF &((uint32_t)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF &((uint32_t)pthread_self())], MacGetTick()))?0:0)*/ #define SLock(l) pthread_mutex_lock(l) #define SUnlock(l) pthread_mutex_unlock(l) #define SDestroyLock(l) pthread_mutex_destroy(l) @@ -176,7 +176,7 @@ exit(0); \ /*mt041.201 Value of MT_TICK_CNT changed*/ /*mt004.301- defining the MT_TICK_CNT in Micro seconds (usecs) */ /* mt010.301 Removed #ifdef SS_FAP portion and enabled oroginal code */ -#define MT_TICK_CNT (((U32)0x0F4240)/SS_TICKS_SEC) +#define MT_TICK_CNT (((uint32_t)0x0F4240)/SS_TICKS_SEC) #define MT_MAX_TICK_CNT_VAL 35 #define MT_MIN_TICK_CNT_VAL 1 @@ -221,7 +221,7 @@ that are configured below. #ifdef XEON_SPECIFIC_CHANGES #define MT_BKT_1_DSIZE 1024 /* Modified from 256 to 4096 */ #else -#define MT_BKT_1_DSIZE 2048 /* Modified from 256 to 4096 */ +#define MT_BKT_1_DSIZE 1280 /* Modified from 256 to 4096 */ #endif #define MT_BKT_1_NUMBLKS 10496 /* 1000*/ #else @@ -240,7 +240,7 @@ that are configured below. #define MT_BKT_2_DSIZE 1768 /* 1664 2048 */ #define MT_BKT_2_NUMBLKS 5248 /* 10496 */ #else -#define MT_BKT_2_DSIZE 8196 /* 1664 2048 */ +#define MT_BKT_2_DSIZE 2048 /* 1664 2048 */ #define MT_BKT_2_NUMBLKS 2000 /* 10496 */ #endif #endif @@ -256,7 +256,7 @@ that are configured below. #define MT_BKT_3_DSIZE 4224 /* Fill in this value as required */ #define MT_BKT_3_NUMBLKS 5248 /*10496 */ /* Fill in this value as required */ #else -#define MT_BKT_3_DSIZE 16896 /* Fill in this value as required */ +#define MT_BKT_3_DSIZE 12000 /* Fill in this value as required */ #define MT_BKT_3_NUMBLKS 1000 /*10496 */ /* Fill in this value as required */ #endif #endif @@ -269,10 +269,10 @@ that are configured below. #define MT_BKT_3_STATIC_NUMBLKS 40960 /* Fill in this value as required */ #define MT_BKT_4_STATIC_NUMBLKS 4096 /* Fill in this value as required */ #else -#define MT_BKT_0_STATIC_NUMBLKS 10000 /* Fill in this value as required */ -#define MT_BKT_1_STATIC_NUMBLKS 1000 /* Fill in this value as required */ -#define MT_BKT_2_STATIC_NUMBLKS 2000 /* Fill in this value as required */ -#define MT_BKT_3_STATIC_NUMBLKS 1000 /* Fill in this value as required */ +#define MT_BKT_0_STATIC_NUMBLKS 75000 /* Fill in this value as required */ +#define MT_BKT_1_STATIC_NUMBLKS 15000 /* Fill in this value as required */ +#define MT_BKT_2_STATIC_NUMBLKS 500 /* Fill in this value as required */ +#define MT_BKT_3_STATIC_NUMBLKS 1600 /* Fill in this value as required */ #endif /*mt010.301*/ #ifdef RGL_SPECIFIC_CHANGES @@ -300,7 +300,7 @@ that are configured below. #ifdef XEON_SPECIFIC_CHANGES #define MT_HEAP_SIZE 6194304U #else -#define MT_HEAP_SIZE 6194304U /*PAL FIX: 4MB to 6MB flexran */ +#define MT_HEAP_SIZE 1004800U /*PAL FIX: 4MB to 6MB flexran */ #endif #endif