~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/mips/loongson/common/cs5536/cs5536_mfgpt.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
        .rating = 120, /* Functional for real use, but not desired */
202
202
        .read = mfgpt_read,
203
203
        .mask = CLOCKSOURCE_MASK(32),
204
 
        .mult = 0,
205
 
        .shift = 22,
206
204
};
207
205
 
208
206
int __init init_mfgpt_clocksource(void)
210
208
        if (num_possible_cpus() > 1)    /* MFGPT does not scale! */
211
209
                return 0;
212
210
 
213
 
        clocksource_mfgpt.mult = clocksource_hz2mult(MFGPT_TICK_RATE, 22);
214
 
        return clocksource_register(&clocksource_mfgpt);
 
211
        return clocksource_register_hz(&clocksource_mfgpt, MFGPT_TICK_RATE);
215
212
}
216
213
 
217
214
arch_initcall(init_mfgpt_clocksource);