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

« back to all changes in this revision

Viewing changes to arch/sparc/kernel/us3_cpufreq.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:
71
71
                break;
72
72
        default:
73
73
                BUG();
74
 
        };
 
74
        }
75
75
 
76
76
        return ret;
77
77
}
85
85
        if (!cpu_online(cpu))
86
86
                return 0;
87
87
 
88
 
        cpus_allowed = current->cpus_allowed;
 
88
        cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current));
89
89
        set_cpus_allowed_ptr(current, cpumask_of(cpu));
90
90
 
91
91
        reg = read_safari_cfg();
105
105
        if (!cpu_online(cpu))
106
106
                return;
107
107
 
108
 
        cpus_allowed = current->cpus_allowed;
 
108
        cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current));
109
109
        set_cpus_allowed_ptr(current, cpumask_of(cpu));
110
110
 
111
111
        new_freq = sparc64_get_clock_tick(cpu) / 1000;
125
125
 
126
126
        default:
127
127
                BUG();
128
 
        };
 
128
        }
129
129
 
130
130
        reg = read_safari_cfg();
131
131