summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d094a30)
raw | patch | inline | side by side (parent: d094a30)
author | Ramsey Harris <ramsey@ti.com> | |
Tue, 14 Apr 2015 23:45:05 +0000 (16:45 -0700) | ||
committer | Robert Tivy <rtivy@ti.com> | |
Wed, 15 Apr 2015 21:58:31 +0000 (14:58 -0700) |
Remove the calls to change task priority. Only the application
has the privilege to do this. In addition, example ex46_graph
calls Ipc_attach from the idle task, were it is illegal to
change the task priority.
has the privilege to do this. In addition, example ex46_graph
calls Ipc_attach from the idle task, were it is illegal to
change the task priority.
packages/ti/sdo/ipc/Ipc.c | patch | blob | history |
index e5e97dd35bc9155c8e671565c1f42e707351f918..9e67d389913ff606a7c9f8f3c703a83d65b04d73 100644 (file)
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/hal/Cache.h>
#include <ti/sysbios/hal/Hwi.h>
-#include <ti/sysbios/knl/Task.h>
#include <ti/sdo/ipc/_Ipc.h>
#include <ti/sdo/ipc/_Notify.h>
volatile ti_sdo_ipc_Ipc_Reserved *self, *remote;
SizeT reservedSize = ti_sdo_ipc_Ipc_reservedSizePerProc();
Bool cacheEnabled = SharedRegion_isCacheEnabled(0);
- UInt oldPri;
/* don't do any synchronization if procSync is NONE */
if (ti_sdo_ipc_Ipc_procSync == ti_sdo_ipc_Ipc_ProcSync_NONE) {
/* if slave processor, wait for remote to finish sync */
if (MultiProc_self() < remoteProcId) {
- if (BIOS_getThreadType() == BIOS_ThreadType_Task) {
- oldPri = Task_getPri(Task_self());
- }
/* wait for remote processor to finish */
while (remote->startedKey != ti_sdo_ipc_Ipc_PROCSYNCFINISH &&
remote->startedKey != ti_sdo_ipc_Ipc_PROCSYNCDETACH) {
- /* Set self priority to 1 [lowest] and yield cpu */
- if (BIOS_getThreadType() == BIOS_ThreadType_Task) {
- Task_setPri(Task_self(), 1);
- Task_yield();
- }
- /* Check the remote's sync flag */
if (cacheEnabled) {
Cache_inv((Ptr)remote, reservedSize, Cache_Type_ALL, TRUE);
}
}
-
- /* Restore self priority */
- if (BIOS_getThreadType() == BIOS_ThreadType_Task) {
- Task_setPri(Task_self(), oldPri);
- }
}
return (Ipc_S_SUCCESS);