ia64/linux-2.6.18-xen.hg

annotate scripts/gcc-version.sh @ 798:b02a90bf5bbc

ACPI: Backport missing part for T-State MSR support

Part of below kernel commit was missed while packporting T-State
support.

commit f79f06ab9f86d7203006d2ec8992ac80df36a34e
Author: Zhao Yakui <yakui.zhao@intel.com>
Date: Thu Nov 15 17:06:36 2007 +0800

ACPI: Enable MSR (FixedHW) support for T-States

Add throttling control via MSR when T-states uses
the FixHW Control Status registers.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 02 10:53:59 2009 +0000 (2009-03-02)
parents 831230e53067
children
rev   line source
ian@0 1 #!/bin/sh
ian@0 2 #
ian@0 3 # gcc-version gcc-command
ian@0 4 #
ian@0 5 # Prints the gcc version of `gcc-command' in a canonical 4-digit form
ian@0 6 # such as `0295' for gcc-2.95, `0303' for gcc-3.3, etc.
ian@0 7 #
ian@0 8
ian@0 9 compiler="$*"
ian@0 10
ian@0 11 MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1)
ian@0 12 MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
ian@0 13 printf "%02d%02d\\n" $MAJOR $MINOR
ian@0 14