Reduce stack usage by killing `linebuf' variable in html_display_cpu_cstates()
Signed-off-by: Sergey Senozhatsky <sergey.senozhat...@gmail.com> --- diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp index 6afedf3..9112dec 100644 --- a/cpu/cpu.cpp +++ b/cpu/cpu.cpp @@ -334,7 +334,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; @@ -361,7 +360,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; _______________________________________________ Discuss mailing list Discuss@lesswatts.org http://lists.lesswatts.org/listinfo/discuss