From patchwork Sat Oct 10 02:26:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zachary Amsden X-Patchwork-Id: 52899 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9A2UMbS001709 for ; Sat, 10 Oct 2009 02:30:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964850AbZJJC3R (ORCPT ); Fri, 9 Oct 2009 22:29:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964849AbZJJC3R (ORCPT ); Fri, 9 Oct 2009 22:29:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964840AbZJJC3R (ORCPT ); Fri, 9 Oct 2009 22:29:17 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9A2Sp8d029171 for ; Fri, 9 Oct 2009 22:28:51 -0400 Received: from localhost.localdomain (vpn-12-47.rdu.redhat.com [10.11.12.47]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9A2SaxC009209; Fri, 9 Oct 2009 22:28:49 -0400 From: Zachary Amsden To: kvm@vger.kernel.org, avi@redhat.com Cc: Zachary Amsden Subject: [PATCH] kvm-kmod cpufreq_get fix Date: Fri, 9 Oct 2009 16:26:09 -1000 Message-Id: <1255141569-3572-3-git-send-email-zamsden@redhat.com> In-Reply-To: <1255141569-3572-2-git-send-email-zamsden@redhat.com> References: <4ACFA178.2040203@web.de> <1255141569-3572-1-git-send-email-zamsden@redhat.com> <1255141569-3572-2-git-send-email-zamsden@redhat.com> CC: Eduardo Habkost X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 47fdc86..6fe7d87 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -993,3 +993,12 @@ unsigned long kvm_vma_kernel_pagesize(struct vm_area_struct *vma) } \ }) #endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33) +#ifndef CONFIG_CPU_FREQ +static inline unsigned int cpufreq_get(unsigned int cpu) +{ + return 0; +} +#endif +#endif