diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-01 12:00:33 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-01 12:00:33 +0200 |
commit | 63d460160c17bedd006b7a3d06a903924b705afb (patch) | |
tree | 11bcd031122cf2798acaa2bb63296b769ae721be /src/modules/systemlib/cpuload.h | |
parent | 4db739b5e19953b5f6c4a16b2ddac8cdc0ae6634 (diff) | |
download | px4-firmware-63d460160c17bedd006b7a3d06a903924b705afb.tar.gz px4-firmware-63d460160c17bedd006b7a3d06a903924b705afb.tar.bz2 px4-firmware-63d460160c17bedd006b7a3d06a903924b705afb.zip |
Adjusted to renaming of TCB in NuttX
Diffstat (limited to 'src/modules/systemlib/cpuload.h')
-rw-r--r-- | src/modules/systemlib/cpuload.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/systemlib/cpuload.h b/src/modules/systemlib/cpuload.h index a97047ea8..c7aa18d3c 100644 --- a/src/modules/systemlib/cpuload.h +++ b/src/modules/systemlib/cpuload.h @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (C) 2012 PX4 Development Team. All rights reserved. + * Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -43,7 +43,7 @@ struct system_load_taskinfo_s { uint64_t total_runtime; ///< Runtime since start (start_time - total_runtime)/(start_time - current_time) = load uint64_t curr_start_time; ///< Start time of the current scheduling slot uint64_t start_time; ///< FIRST start time of task - FAR struct _TCB *tcb; ///< + FAR struct tcb_s *tcb; ///< bool valid; ///< Task is currently active / valid }; @@ -60,4 +60,6 @@ __EXPORT extern struct system_load_s system_load; __EXPORT void cpuload_initialize_once(void); +__END_DECLS + #endif |