cpuctl of controllers: fix the bug of while loop
PATCH 1/1 cpuctl of controllers: fix the bug of while loop
Here is the right patch.
I'm sorry for my carelessness.
---
testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c +1 -1
@@ -82,7 +82,7 @@ extern void cleanup()kill (scriptpid,SIGUSR1 );/* Inform the shell to do cleanup*/ tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c +1 -1
@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c +1 -1
@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_def_task04.c +1 -1
@@ -78,7 +78,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_test01.c +1 -1
@@ -80,7 +80,7 @@ cleanup()kill (scriptpid,SIGUSR1 );/* Inform the shell to do cleanup*/ tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_test02.c +1 -1
@@ -80,7 +80,7 @@ cleanup() }int migrate_task (); -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_test03.c +1 -1
@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {
testcases/kernel/controllers/cpuctl/cpuctl_test04.c +1 -1
@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {
testcases/kernel/controllers/libcontrollers/libcontrollers.h +2 -1
@@ -48,7 +48,8 @@ char fullpath[PATH_MAX];char fullpath[1024 ];/* Guess */ #endif -int FLAG , timer_expired; +int FLAG ; +volatile int timer_expired;int retval;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 5 lines · liubo
Here is the right patch.
I'm sorry for my carelessness.Signed-off-by Miao Xie <[email protected]>Signed-off-by Liu Bo <[email protected]>
Thanks.
Regards--
Subrata
Quoted 120 lines
---
testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c +1
-1@@ -82,7 +82,7 @@ extern void cleanup()kill (scriptpid,SIGUSR1 );/* Inform the shell to do cleanup*/ tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c +1
-1@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c +1
-1@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_def_task04.c +1
-1@@ -78,7 +78,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char *argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_test01.c +1
-1@@ -80,7 +80,7 @@ cleanup()kill (scriptpid,SIGUSR1 );/* Inform the shell to do cleanup*/ tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_test02.c +1
-1@@ -80,7 +80,7 @@ cleanup() }int migrate_task (); -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_test03.c +1
-1@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {testcases/kernel/controllers/cpuctl/cpuctl_test04.c +1
-1@@ -79,7 +79,7 @@ cleanup()tst_exit ();/* Report exit status*/ } -int timer_expired =0 ; +volatile int timer_expired =0 ;int main (int argc,char * argv[]) {testcases/kernel/controllers/libcontrollers/libcontrollers.h +2
-2@@ -48,7 +48,8 @@ char fullpath[PATH_MAX];char fullpath[1024 ];/* Guess */ #endif -int FLAG , timer_expired; +int FLAG ; +volatile int timer_expired;int retval; ------------------------------------------------------------------------------
Quoted 8 lines
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list