diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2011-04-13 16:23:53 +0300 |
---|---|---|
committer | Kristen Carlson Accardi <kristen@linux.intel.com> | 2011-04-21 14:48:59 -0700 |
commit | 2c70edcb37490099bad6a30465f7d1ccc41ed21d (patch) | |
tree | 57cd37a75e13dafcb0428656a44fba83df347c5b | |
parent | 9a32ab238ad79dfa8bb26f9e86653f52d72b5382 (diff) | |
download | powertop-2c70edcb37490099bad6a30465f7d1ccc41ed21d.tar.gz |
cleanup: kill `linebuf' variable in html_display_cpu_cstates()
Reduce stack usage by killing `linebuf' variable
in html_display_cpu_cstates()
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
-rw-r--r-- | cpu/cpu.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp index 89da218..8e64821 100644 --- a/cpu/cpu.cpp +++ b/cpu/cpu.cpp @@ -336,7 +336,6 @@ static const char *freq_class(int line) void html_display_cpu_cstates(void) { char buffer[512], buffer2[512]; - char linebuf[1024]; unsigned int package, core, cpu; int line; class abstract_cpu *_package, * _core, * _cpu; @@ -363,7 +362,6 @@ void html_display_cpu_cstates(void) for (line = LEVEL_HEADER; line < 10; line++) { int first = 1; - linebuf[0] = 0; if (!_package->has_cstate_level(line)) continue; |