History log of /external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4af6d295d0a6e25214838f1237e9ec7cc9600ef8 21-May-2015 Wei,Jiangang <weijg.fnst@cn.fujitsu.com> kernel/controllers/cpuctl: cleanup

* Remove redundant include(s) for unistd.h
* Add void where needed

Signed-off-by: Wei,Jiangang <weijg.fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
fdce7d5e2a219d201a2b0e3bab6b61b01ec1d716 04-Apr-2013 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

Remove comments such as:

- /* Test program identifier. */

- /* Total number of test cases. */

- /* Extern Global Variables */

- /* Harness Specific Include Files. */

- /* Standard Include Files */

- /* Parse standard options given to run the test. */

- etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
b6ff02cd9592e40c4b435ff7755cb69572a23f47 20-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix all remaining warnings.

These warnings were mostly caused by the fact that tst_brk* is now reentrant
and thus, the noreturn attribute is removed.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
72521cf0741034f67dd17107453cda9a9819264c 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix more tests; remove more Tst_count externs.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
575839ea989d07d4efa8816256469da86c2dab5c 09-Sep-2009 subrata_modak <subrata_modak> cpuctl of controllers: fix the bug of while loop: When running the ltp tool by "./runltp -f controllers", I found "while" loop cannot stop in following files of cpuctl test. File list:
cpuctl_def_task01.c
cpuctl_def_task02.c
cpuctl_def_task03.c
cpuctl_def_task04.c
cpuctl_test01.c
cpuctl_test02.c
cpuctl_test03.c
cpuctl_test04.c

Key code:
timer_expired=0;
while(!timer_expired)
f=sqrt(f*f);

Reason:
During the compilation of these files, gcc's O2 mechanism causes the change of variable "timer_expired" to be omitted, hence the loop, "while(!timer_expired) f=sqrt(f*f);" cannot get out from itself. Change the type of "timer_expired" from "int" to "volatile int" to fix this bug. By the way, it is necessary to modify the file, ltp-full-xxxxxxxx/testcases/kernel/controllers/libcontrollers/ libcontrollers.h for compilation.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>,
Signed-off-by: Liu Bo <liubo-fnst@cn.fujitsu.com>,
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
5bb280e865a04a9b746f9d04dbbd9a13a3cd78c9 25-Nov-2008 subrata_modak <subrata_modak> CONTROLLERS: binary for def task for test 4 & 5: This patch adds a binary which will be running as a default task for testcases 4 and 5 to create an ideal scenario. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c