[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/6] Pass cpu speed into SM BIOS.
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 6/6] Pass cpu speed into SM BIOS. |
Date: |
Sun, 24 Aug 2008 21:14:23 +0300 |
On 8/24/08, Gleb Natapov <address@hidden> wrote:
> +static uint32_t cpu_speed;
32 bits won't be enough when we get >4GHz CPUs.
+static double get_freq(int divisor, unsigned int cpu)
I'd use uint64_t and throw away the divisor and double math.
On Sparc64, the frequency line in /proc/cpuinfo looks like:
Cpu0ClkTck : 000000000ee6b280
- Re: [Qemu-devel] [PATCH 1/6] Use IO port for qemu<->guest BIOS communication., (continued)
- [Qemu-devel] [PATCH 2/6] Add -uuid command line option., Gleb Natapov, 2008/08/24
- [Qemu-devel] [PATCH 3/6] Add "info uuid" command to monitor., Gleb Natapov, 2008/08/24
- [Qemu-devel] [PATCH 4/6] Use libuuid if available., Gleb Natapov, 2008/08/24
- [Qemu-devel] [PATCH 5/6] Add UUID to BIOS configuration info., Gleb Natapov, 2008/08/24
- [Qemu-devel] [PATCH 6/6] Pass cpu speed into SM BIOS., Gleb Natapov, 2008/08/24
- Re: [Qemu-devel] [PATCH 6/6] Pass cpu speed into SM BIOS.,
Blue Swirl <=
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Blue Swirl, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Gleb Natapov, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Blue Swirl, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Gleb Natapov, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Blue Swirl, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Gleb Natapov, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Blue Swirl, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Kevin O'Connor, 2008/08/24
- Re: [Qemu-devel] [PATCH 0/6] Add UUID command-line option, Avi Kivity, 2008/08/24