Re: [Powertop] [PATCH] Fixed cpu_core::has_c1_res initialization.

Sergey Senozhatsky <sergey.senozhatsky at gmail.com>
Newsgroups dev.linux.lists.powertop
Message-ID <20131013143004.GA2563@swordfish>
On (10/13/13 12:45), David Rosca wrote:
> Date: Sun, 13 Oct 2013 12:45:05 +0200
> From: David Rosca <nowrep(a)gmail.com>
> To: powertop(a)lists.01.org
> Subject: [Powertop] [PATCH] Fixed cpu_core::has_c1_res initialization.
> 
>    This is regression from 8d6e716
> 
>    cpu_core::has_c1_res is left uninitialized for anything other than BYT-M,
>    resulting in error at startup:
> 
>      unknown op '{'
>                    read_msr cpu0 0x660 : Argument list too long.
> 
>    Signed-off-by: David Rosca <[1]nowrep(a)gmail.com>
> 
>    ---
>     src/cpu/intel_cpus.cpp | 4 +++-
>     1 file changed, 3 insertions(+), 1 deletion(-)
> 
>    diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp
>    index 3348dba..6330b6f 100644
>    --- a/src/cpu/intel_cpus.cpp
>    +++ b/src/cpu/intel_cpus.cpp
>    @@ -101,8 +101,10 @@ nhm_core::nhm_core(int model)
>         if (model == 0x37) {
>             has_c3_res = 0;
>             has_c1_res = 1;
>    -    } else
>    +    } else {
>             has_c3_res = 1;
>    +                has_c1_res = 0;
	^^^^^^^^^^^^^^^^

>    +        }
	^^^^^^
>     }

good catch.

could you please use original code indentation?

	-ss

>     
>     void nhm_core::measurement_start(void)
>    --
>    1.8.4.rc3
> 
> References
> 
>    Visible links
>    1. mailto:nowrep(a)gmail.com

> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.