[Cbe-oss-dev] [PATCH 1/3] libspe2: Add NOSCHED flag to spe_context_create

D. Herrendoerfer d.herrendoerfer at herrendoerfer.name
Tue Mar 4 23:29:40 EST 2008


This patch adds support for the SPE_NOSHED flag to spe_context_create().

Signed-off-by: Dirk Herrendoerfer < herrend at de.ibm.com >

Index: libspe2/spebase/create.c
===================================================================
--- libspe2/spebase/create.c    (revision 100)
+++ libspe2/spebase/create.c    (working copy)
@@ -239,6 +239,9 @@ spe_context_ptr_t _base_spe_context_crea
        if (flags & SPE_EVENTS_ENABLE)
                spu_createflags |= SPU_CREATE_EVENTS_ENABLED;
 
+       if (flags & SPE_NOSCHED)
+               spu_createflags |= SPU_CREATE_NOSCHED;
+
        if (aff_spe)
                spu_createflags |= SPU_CREATE_AFFINITY_SPU;
 
Index: libspe2/libspe2-types.h
===================================================================
--- libspe2/libspe2-types.h     (revision 100)
+++ libspe2/libspe2-types.h     (working copy)
@@ -178,6 +178,7 @@ enum ps_area { SPE_MSSYNC_AREA, SPE_MFC_
 #define SPE_MAP_PS                             0x00000040
 #define SPE_ISOLATE                            0x00000080
 #define SPE_ISOLATE_EMULATE                    0x00000100
+#define SPE_NOSCHED                                    0x00000200
 #define SPE_EVENTS_ENABLE                      0x00001000
 #define SPE_AFFINITY_MEMORY                    0x00002000





More information about the cbe-oss-dev mailing list