-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 73967 b: refs/heads/master c: da457d4 h: refs/heads/master i: 73965: 4b3bf22 73963: 2c1ddab 73959: 6c3a64b 73951: ce3c85e v: v3
- Loading branch information
Linus Torvalds
committed
Nov 27, 2007
1 parent
9688fb5
commit e39fc2b
Showing
44 changed files
with
453 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: ad639b9f2ccb87815384bda4ed4609592a861b8b | ||
refs/heads/master: da457d4b93f9d746b0afd4aa65c94759f190d642 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2007 by Ralf Baechle | ||
*/ | ||
|
||
static cycle_t c0_hpt_read(void) | ||
{ | ||
return read_c0_count(); | ||
} | ||
|
||
static struct clocksource clocksource_mips = { | ||
.name = "MIPS", | ||
.read = c0_hpt_read, | ||
.mask = CLOCKSOURCE_MASK(32), | ||
.flags = CLOCK_SOURCE_IS_CONTINUOUS, | ||
}; | ||
|
||
static void __init init_mips_clocksource(void) | ||
{ | ||
/* Calclate a somewhat reasonable rating value */ | ||
clocksource_mips.rating = 200 + mips_hpt_frequency / 10000000; | ||
|
||
clocksource_set_clock(&clocksource_mips, mips_hpt_frequency); | ||
|
||
clocksource_register(&clocksource_mips); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.