Browse Source

Use the new PE thread working area

Clara Hobbs 6 years ago
parent
commit
7cbe9804fe
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      lib/src/policy_engine.c

+ 1
- 2
lib/src/policy_engine.c View File

658
 /*
658
 /*
659
  * Policy Engine state machine thread
659
  * Policy Engine state machine thread
660
  */
660
  */
661
-static THD_WORKING_AREA(waPolicyEngine, 128);
662
 static THD_FUNCTION(PolicyEngine, cfg) {
661
 static THD_FUNCTION(PolicyEngine, cfg) {
663
     enum policy_engine_state state = PESinkStartup;
662
     enum policy_engine_state state = PESinkStartup;
664
 
663
 
723
 
722
 
724
 void pdb_pe_run(struct pdb_config *cfg)
723
 void pdb_pe_run(struct pdb_config *cfg)
725
 {
724
 {
726
-    pdb_pe_thread = chThdCreateStatic(waPolicyEngine, sizeof(waPolicyEngine),
725
+    pdb_pe_thread = chThdCreateStatic(cfg->pe._wa, sizeof(cfg->pe._wa),
727
             PDB_PRIO_PE, PolicyEngine, cfg);
726
             PDB_PRIO_PE, PolicyEngine, cfg);
728
 }
727
 }

Loading…
Cancel
Save