- lower process priority below timer interrupt priority to prevent
uninterruptible while(1); loop on RT systems

-- 
Stefan Assmann          | SUSE LINUX Products GmbH
Software Engineer       | Maxfeldstr. 5, D-90409 Nuernberg
Mail : [EMAIL PROTECTED] | GF: Markus Rex, HRB 16746 (AG Nuernberg)


Index: ltp-full-20061017/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c
===================================================================
--- ltp-full-20061017.orig/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c
+++ ltp-full-20061017/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/10-1.c
@@ -86,7 +86,7 @@ void child_process(){
 
 	while(1) {
 		(*shmptr)++;
-		sched_yield();
+	sched_yield();
 	}
 }
 
@@ -127,7 +127,7 @@ int main(){
 	}
 	*shmptr = 0;
 
-	param.sched_priority = sched_get_priority_max(SCHED_FIFO);
+	param.sched_priority = sched_get_priority_min(SCHED_FIFO) + 2;
 
 	if(sched_setscheduler(getpid(), SCHED_FIFO, &param) != 0) {
 		if(errno == EPERM) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to