-
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: 73980 b: refs/heads/master c: 9ccc236 h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Nov 27, 2007
1 parent
8442634
commit 0913fe0
Showing
91 changed files
with
1,285 additions
and
657 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: c5d4a9997b4b2ec71cff0b219f05c6bc51f3fc79 | ||
refs/heads/master: 9ccc236269c1a838b58148c94ac0eeeca885b836 |
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
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.