Lines Matching refs:cpu

36 static void tegra_secondary_init(unsigned int cpu)  in tegra_secondary_init()  argument
38 cpumask_set_cpu(cpu, &tegra_cpu_init_mask); in tegra_secondary_init()
42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
44 cpu = cpu_logical_map(cpu); in tegra20_boot_secondary()
54 tegra_put_cpu_in_reset(cpu); in tegra20_boot_secondary()
62 flowctrl_write_cpu_halt(cpu, 0); in tegra20_boot_secondary()
64 tegra_enable_cpu_clock(cpu); in tegra20_boot_secondary()
65 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ in tegra20_boot_secondary()
66 tegra_cpu_out_of_reset(cpu); in tegra20_boot_secondary()
70 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() argument
75 cpu = cpu_logical_map(cpu); in tegra30_boot_secondary()
76 tegra_put_cpu_in_reset(cpu); in tegra30_boot_secondary()
77 flowctrl_write_cpu_halt(cpu, 0); in tegra30_boot_secondary()
93 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra30_boot_secondary()
96 if (tegra_pmc_cpu_is_powered(cpu)) in tegra30_boot_secondary()
108 ret = tegra_pmc_cpu_power_on(cpu); in tegra30_boot_secondary()
114 tegra_enable_cpu_clock(cpu); in tegra30_boot_secondary()
118 ret = tegra_pmc_cpu_remove_clamping(cpu); in tegra30_boot_secondary()
124 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ in tegra30_boot_secondary()
125 tegra_cpu_out_of_reset(cpu); in tegra30_boot_secondary()
129 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() argument
133 cpu = cpu_logical_map(cpu); in tegra114_boot_secondary()
135 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra114_boot_secondary()
142 flowctrl_write_cpu_csr(cpu, 1); in tegra114_boot_secondary()
143 flowctrl_write_cpu_halt(cpu, in tegra114_boot_secondary()
152 ret = tegra_pmc_cpu_power_on(cpu); in tegra114_boot_secondary()
158 static int tegra_boot_secondary(unsigned int cpu, in tegra_boot_secondary() argument
162 return tegra20_boot_secondary(cpu, idle); in tegra_boot_secondary()
164 return tegra30_boot_secondary(cpu, idle); in tegra_boot_secondary()
166 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
168 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()