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

« back to all changes in this revision

Viewing changes to arch/mn10300/kernel/cevt-mn10300.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:
89
89
        cd->name                = "Timestamp";
90
90
        cd->features            = CLOCK_EVT_FEAT_ONESHOT;
91
91
 
 
92
        /* Calculate shift/mult. We want to spawn at least 1 second */
 
93
        clockevents_calc_mult_shift(cd, MN10300_JCCLK, 1);
 
94
 
92
95
        /* Calculate the min / max delta */
93
 
        clockevent_set_clock(cd, MN10300_JCCLK);
94
 
 
95
96
        cd->max_delta_ns        = clockevent_delta2ns(TMJCBR_MAX, cd);
96
97
        cd->min_delta_ns        = clockevent_delta2ns(100, cd);
97
98
 
110
111
#if defined(CONFIG_SMP) && !defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)
111
112
        /* setup timer irq affinity so it only runs on this cpu */
112
113
        {
113
 
                struct irq_desc *desc;
114
 
                desc = irq_to_desc(cd->irq);
115
 
                cpumask_copy(desc->affinity, cpumask_of(cpu));
 
114
                struct irq_data *data;
 
115
                data = irq_get_irq_data(cd->irq);
 
116
                cpumask_copy(data->affinity, cpumask_of(cpu));
116
117
                iact->flags |= IRQF_NOBALANCING;
117
118
        }
118
119
#endif