grub/kern
marco_g 9c2ff3eefe 2008-08-05 Colin D Bennett <colin@gibibit.com>
High resolution timer support.  Implemented for x86 CPUs using TSC.
	Extracted generic grub_millisleep() so it's linked in only as needed.
	This requires a Pentium compatible CPU; if the RDTSC instruction is
	not supported, then it falls back on the generic grub_get_time_ms()
	implementation that uses the machine's RTC.

	* conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
	`kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
	`kern/generic/millisleep.c'.

	* conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
	`kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.

	* conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
	`kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.

	* conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

	* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
	`kern/generic/millisleep.c'.

	* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

	* conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.

	* kern/generic/rtc_get_time_ms.c: New file.

	* kern/generic/millisleep.c: New file.
 	
	* kern/misc.c: Don't include
	<kern/time.h> anymore.
	(grub_millisleep_generic): Removed.

	* commands/sleep.c (grub_interruptible_millisleep): Uses
	grub_get_time_ms() instead of grub_get_rtc().

	* include/grub/i386/tsc.h (grub_get_tsc): New file.  New inline
	function.
	(grub_cpu_is_cpuid_supported): New inline function.
	(grub_cpu_is_tsc_supported): New inline function.
	(grub_tsc_init): New function prototype.
	(grub_tsc_get_time_ms): New function prototype.

	* kern/i386/tsc.c (grub_get_time_ms): New file.

	* include/grub/time.h: Include <grub/types.h.
	(grub_millisleep_generic): Removed.
	(grub_get_time_ms): New prototype.
	(grub_install_get_time_ms): New prototype.
	(grub_rtc_get_time_ms): New prototype.

	* kern/time.c (grub_get_time_ms): New function.
	(grub_install_get_time_ms): New function.

	* kern/i386/efi/init.c: Include <grub/cpu/tsc.h>.  Don't include
	<grub/time.h> anymore.
	(grub_millisleep): Removed.
	(grub_machine_init): Call grub_tsc_init.

	* kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
	get_time_ms() implementation.

	* kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
	(ieee1275_get_time_ms): New function.
	(grub_machine_init): Install get_time_ms() implementation.

	* kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
	(grub_machine_init): Call grub_tsc_init().
	(grub_millisleep): Removed.
 
	* kern/ieee1275/init.c (grub_millisleep): Removed.
	(grub_machine_init): Install ieee1275_get_time_ms()
	implementation.
	(ieee1275_get_time_ms): New function.
	(grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
	real work.
2008-08-05 11:54:37 +00:00
..
efi 2008-07-17 Pavel Roskin <proski@gnu.org> 2008-07-18 01:11:33 +00:00
i386 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
ieee1275 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
powerpc 2008-04-18 Robert Millan <rmh@aybabtu.com> 2008-04-18 15:53:20 +00:00
sparc64 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
x86_64 Typo fix 2008-07-18 03:47:33 +00:00
device.c 2008-08-02 Robert Millan <rmh@aybabtu.com> 2008-08-02 12:17:44 +00:00
disk.c 2008-06-26 Robert Millan <rmh@aybabtu.com> 2008-06-26 14:26:07 +00:00
dl.c 2008-07-24 Bean <bean123ch@gmail.com> 2008-07-24 14:56:30 +00:00
elf.c 2008-07-14 Pavel Roskin <proski@gnu.org> 2008-07-14 04:46:19 +00:00
env.c 2008-07-14 Pavel Roskin <proski@gnu.org> 2008-07-14 05:03:19 +00:00
err.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
file.c 2008-01-25 Robert Millan <rmh@aybabtu.com> 2008-01-25 20:57:40 +00:00
fs.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
loader.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
main.c 2008-08-04 Pavel Roskin <proski@gnu.org> 2008-08-04 22:54:06 +00:00
misc.c 2008-08-05 Colin D Bennett <colin@gibibit.com> 2008-08-05 11:54:37 +00:00
mm.c 2008-01-23 Robert Millan <rmh@aybabtu.com> 2008-01-23 14:57:40 +00:00
parser.c 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
partition.c 2008-07-04 Robert Millan <rmh@aybabtu.com> 2008-07-03 22:56:43 +00:00
rescue.c 2008-02-19 Pavel Roskin <proski@gnu.org> 2008-02-19 19:52:42 +00:00
term.c 2007-12-25 Robert Millan <rmh@aybabtu.com> 2007-12-25 11:10:47 +00:00