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

« back to all changes in this revision

Viewing changes to arch/sparc/kernel/ds.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:
497
497
        tag->num_records = ncpus;
498
498
 
499
499
        i = 0;
500
 
        for_each_cpu_mask(cpu, *mask) {
 
500
        for_each_cpu(cpu, mask) {
501
501
                ent[i].cpu = cpu;
502
502
                ent[i].result = DR_CPU_RES_OK;
503
503
                ent[i].stat = default_stat;
534
534
        int resp_len, ncpus, cpu;
535
535
        unsigned long flags;
536
536
 
537
 
        ncpus = cpus_weight(*mask);
 
537
        ncpus = cpumask_weight(mask);
538
538
        resp_len = dr_cpu_size_response(ncpus);
539
539
        resp = kzalloc(resp_len, GFP_KERNEL);
540
540
        if (!resp)
547
547
        mdesc_populate_present_mask(mask);
548
548
        mdesc_fill_in_cpu_data(mask);
549
549
 
550
 
        for_each_cpu_mask(cpu, *mask) {
 
550
        for_each_cpu(cpu, mask) {
551
551
                int err;
552
552
 
553
553
                printk(KERN_INFO "ds-%llu: Starting cpu %d...\n",
593
593
        int resp_len, ncpus, cpu;
594
594
        unsigned long flags;
595
595
 
596
 
        ncpus = cpus_weight(*mask);
 
596
        ncpus = cpumask_weight(mask);
597
597
        resp_len = dr_cpu_size_response(ncpus);
598
598
        resp = kzalloc(resp_len, GFP_KERNEL);
599
599
        if (!resp)
603
603
                             resp_len, ncpus, mask,
604
604
                             DR_CPU_STAT_UNCONFIGURED);
605
605
 
606
 
        for_each_cpu_mask(cpu, *mask) {
 
606
        for_each_cpu(cpu, mask) {
607
607
                int err;
608
608
 
609
609
                printk(KERN_INFO "ds-%llu: Shutting down cpu %d...\n",
649
649
 
650
650
        purge_dups(cpu_list, tag->num_records);
651
651
 
652
 
        cpus_clear(mask);
 
652
        cpumask_clear(&mask);
653
653
        for (i = 0; i < tag->num_records; i++) {
654
654
                if (cpu_list[i] == CPU_SENTINEL)
655
655
                        continue;
656
656
 
657
657
                if (cpu_list[i] < nr_cpu_ids)
658
 
                        cpu_set(cpu_list[i], mask);
 
658
                        cpumask_set_cpu(cpu_list[i], &mask);
659
659
        }
660
660
 
661
661
        if (tag->type == DR_CPU_CONFIGURE)
1218
1218
        return 0;
1219
1219
}
1220
1220
 
1221
 
static struct vio_device_id __initdata ds_match[] = {
 
1221
static const struct vio_device_id ds_match[] = {
1222
1222
        {
1223
1223
                .type = "domain-services-port",
1224
1224
        },