Skip to content

Commit f5d17d5

Browse files
committed
Turn off the uptime ticker
Although this was a useful example of interrupt programming, it's starting to get annoying. Signed-off-by: SlyMarbo <[email protected]>
1 parent d0e5fc4 commit f5d17d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/src/time/ticker.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// with a static TICKER instance used with interrupts to
55
// track the passage of time.
66

7-
use crate::print;
87
use spin::Mutex;
98
use x86_64::instructions::port::Port;
109

@@ -18,9 +17,6 @@ static TICKER: Mutex<Ticker> = Mutex::new(Ticker::new());
1817
pub fn tick() {
1918
let mut ticker = TICKER.lock();
2019
ticker.counter += 1;
21-
if ticker.counter % TICKS_PER_SECOND == 0 {
22-
print!("\rUptime: {} seconds.", ticker.counter / TICKS_PER_SECOND);
23-
}
2420
}
2521

2622
/// ticks returns the number of ticks of the

0 commit comments

Comments
 (0)