Message ID | 1354871423-12054-1-git-send-email-colin.king@canonical.com |
---|---|
State | Accepted |
Headers | show |
On Fri, Dec 7, 2012 at 5:10 PM, Colin King <colin.king@canonical.com> wrote: > From: Colin Ian King <colin.king@canonical.com> > > The PCC test really doesn't make sense on other architectures so > disable this for non-Intel builds. > > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/acpi/pcc/pcc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c > index c3b6a38..3848014 100644 > --- a/src/acpi/pcc/pcc.c > +++ b/src/acpi/pcc/pcc.c > @@ -18,6 +18,8 @@ > */ > #include "fwts.h" > > +#ifdef FWTS_ARCH_INTEL > + > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > @@ -467,3 +469,5 @@ static fwts_framework_ops pcc_ops = { > }; > > FWTS_REGISTER(pcc, &pcc_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH); > + > +#endif > -- > 1.8.0 > Acked-by: Keng-Yu Lin <kengyu@canonical.com>
On 12/07/2012 05:10 PM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > The PCC test really doesn't make sense on other architectures so > disable this for non-Intel builds. > > Signed-off-by: Colin Ian King <colin.king@canonical.com> > --- > src/acpi/pcc/pcc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c > index c3b6a38..3848014 100644 > --- a/src/acpi/pcc/pcc.c > +++ b/src/acpi/pcc/pcc.c > @@ -18,6 +18,8 @@ > */ > #include "fwts.h" > > +#ifdef FWTS_ARCH_INTEL > + > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > @@ -467,3 +469,5 @@ static fwts_framework_ops pcc_ops = { > }; > > FWTS_REGISTER(pcc, &pcc_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH); > + > +#endif > Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c index c3b6a38..3848014 100644 --- a/src/acpi/pcc/pcc.c +++ b/src/acpi/pcc/pcc.c @@ -18,6 +18,8 @@ */ #include "fwts.h" +#ifdef FWTS_ARCH_INTEL + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -467,3 +469,5 @@ static fwts_framework_ops pcc_ops = { }; FWTS_REGISTER(pcc, &pcc_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH); + +#endif