Commit 187ff3b8575569668cde9021b9fe70386a4131fb

Authored by Stephen Hemminger
Committed by Jeff Garzik
1 parent 9a71db721a

[PATCH] skge: chip clock rate typo

Okay, Fix both typo's in one patch .The impact is that the incorrect value
was being computed for blinking LED and interrupt moderation values.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

... ... @@ -516,10 +516,7 @@
516 516 /* Chip internal frequency for clock calculations */
517 517 static inline u32 hwkhz(const struct skge_hw *hw)
518 518 {
519   - if (hw->chip_id == CHIP_ID_GENESIS)
520   - return 53215; /* or: 53.125 MHz */
521   - else
522   - return 78215; /* or: 78.125 MHz */
  519 + return (hw->chip_id == CHIP_ID_GENESIS) ? 53125 : 78125;
523 520 }
524 521  
525 522 /* Chip HZ to microseconds */