xref: /linux/drivers/cpufreq/pxa2xx-cpufreq.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
11a59d1b8SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later
2cffc96ebSViresh Kumar /*
3cffc96ebSViresh Kumar  *  Copyright (C) 2002,2003 Intrinsyc Software
4cffc96ebSViresh Kumar  *
5cffc96ebSViresh Kumar  * History:
6cffc96ebSViresh Kumar  *   31-Jul-2002 : Initial version [FB]
7cffc96ebSViresh Kumar  *   29-Jan-2003 : added PXA255 support [FB]
8cffc96ebSViresh Kumar  *   20-Apr-2003 : ported to v2.5 (Dustin McIntire, Sensoria Corp.)
9cffc96ebSViresh Kumar  *
10cffc96ebSViresh Kumar  * Note:
11cffc96ebSViresh Kumar  *   This driver may change the memory bus clock rate, but will not do any
12cffc96ebSViresh Kumar  *   platform specific access timing changes... for example if you have flash
13cffc96ebSViresh Kumar  *   memory connected to CS0, you will need to register a platform specific
14cffc96ebSViresh Kumar  *   notifier which will adjust the memory access strobes to maintain a
15cffc96ebSViresh Kumar  *   minimum strobe width.
16cffc96ebSViresh Kumar  */
17cffc96ebSViresh Kumar 
181c5864e2SJoe Perches #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
191c5864e2SJoe Perches 
20cffc96ebSViresh Kumar #include <linux/kernel.h>
21cffc96ebSViresh Kumar #include <linux/module.h>
22cffc96ebSViresh Kumar #include <linux/sched.h>
23cffc96ebSViresh Kumar #include <linux/init.h>
24cffc96ebSViresh Kumar #include <linux/cpufreq.h>
25cffc96ebSViresh Kumar #include <linux/err.h>
26cffc96ebSViresh Kumar #include <linux/regulator/consumer.h>
27*08d3df8cSArnd Bergmann #include <linux/soc/pxa/cpu.h>
28cffc96ebSViresh Kumar #include <linux/io.h>
29cffc96ebSViresh Kumar 
30cffc96ebSViresh Kumar #ifdef DEBUG
31cffc96ebSViresh Kumar static unsigned int freq_debug;
32cffc96ebSViresh Kumar module_param(freq_debug, uint, 0);
33cffc96ebSViresh Kumar MODULE_PARM_DESC(freq_debug, "Set the debug messages to on=1/off=0");
34cffc96ebSViresh Kumar #else
35cffc96ebSViresh Kumar #define freq_debug  0
36cffc96ebSViresh Kumar #endif
37cffc96ebSViresh Kumar 
38cffc96ebSViresh Kumar static struct regulator *vcc_core;
39cffc96ebSViresh Kumar 
40cffc96ebSViresh Kumar static unsigned int pxa27x_maxfreq;
41cffc96ebSViresh Kumar module_param(pxa27x_maxfreq, uint, 0);
42cffc96ebSViresh Kumar MODULE_PARM_DESC(pxa27x_maxfreq, "Set the pxa27x maxfreq in MHz"
43cffc96ebSViresh Kumar 		 "(typically 624=>pxa270, 416=>pxa271, 520=>pxa272)");
44cffc96ebSViresh Kumar 
45d9278077SRobert Jarzmik struct pxa_cpufreq_data {
46d9278077SRobert Jarzmik 	struct clk *clk_core;
47d9278077SRobert Jarzmik };
48d9278077SRobert Jarzmik static struct pxa_cpufreq_data  pxa_cpufreq_data;
49d9278077SRobert Jarzmik 
5052352558SFabian Frederick struct pxa_freqs {
51cffc96ebSViresh Kumar 	unsigned int khz;
52cffc96ebSViresh Kumar 	int vmin;
53cffc96ebSViresh Kumar 	int vmax;
5452352558SFabian Frederick };
55cffc96ebSViresh Kumar 
56cffc96ebSViresh Kumar /*
57cffc96ebSViresh Kumar  * PXA255 definitions
58cffc96ebSViresh Kumar  */
5903c22990SFabian Frederick static const struct pxa_freqs pxa255_run_freqs[] =
60cffc96ebSViresh Kumar {
61d9278077SRobert Jarzmik 	/* CPU   MEMBUS		   run  turbo PXbus SDRAM */
62d9278077SRobert Jarzmik 	{ 99500, -1, -1},	/*  99,   99,   50,   50  */
63d9278077SRobert Jarzmik 	{132700, -1, -1},	/* 133,  133,   66,   66  */
64d9278077SRobert Jarzmik 	{199100, -1, -1},	/* 199,  199,   99,   99  */
65d9278077SRobert Jarzmik 	{265400, -1, -1},	/* 265,  265,  133,   66  */
66d9278077SRobert Jarzmik 	{331800, -1, -1},	/* 331,  331,  166,   83  */
67d9278077SRobert Jarzmik 	{398100, -1, -1},	/* 398,  398,  196,   99  */
68cffc96ebSViresh Kumar };
69cffc96ebSViresh Kumar 
70cffc96ebSViresh Kumar /* Use the turbo mode frequencies for the CPUFREQ_POLICY_POWERSAVE policy */
7103c22990SFabian Frederick static const struct pxa_freqs pxa255_turbo_freqs[] =
72cffc96ebSViresh Kumar {
73d9278077SRobert Jarzmik 	/* CPU			   run  turbo PXbus SDRAM */
74d9278077SRobert Jarzmik 	{ 99500, -1, -1},	/*  99,   99,   50,   50  */
75d9278077SRobert Jarzmik 	{199100, -1, -1},	/*  99,  199,   50,   99  */
76d9278077SRobert Jarzmik 	{298500, -1, -1},	/*  99,  287,   50,   99  */
77d9278077SRobert Jarzmik 	{298600, -1, -1},	/* 199,  287,   99,   99  */
78d9278077SRobert Jarzmik 	{398100, -1, -1},	/* 199,  398,   99,   99  */
79cffc96ebSViresh Kumar };
80cffc96ebSViresh Kumar 
81cffc96ebSViresh Kumar #define NUM_PXA25x_RUN_FREQS ARRAY_SIZE(pxa255_run_freqs)
82cffc96ebSViresh Kumar #define NUM_PXA25x_TURBO_FREQS ARRAY_SIZE(pxa255_turbo_freqs)
83cffc96ebSViresh Kumar 
84cffc96ebSViresh Kumar static struct cpufreq_frequency_table
85cffc96ebSViresh Kumar 	pxa255_run_freq_table[NUM_PXA25x_RUN_FREQS+1];
86cffc96ebSViresh Kumar static struct cpufreq_frequency_table
87cffc96ebSViresh Kumar 	pxa255_turbo_freq_table[NUM_PXA25x_TURBO_FREQS+1];
88cffc96ebSViresh Kumar 
89cffc96ebSViresh Kumar static unsigned int pxa255_turbo_table;
90cffc96ebSViresh Kumar module_param(pxa255_turbo_table, uint, 0);
91cffc96ebSViresh Kumar MODULE_PARM_DESC(pxa255_turbo_table, "Selects the frequency table (0 = run table, !0 = turbo table)");
92cffc96ebSViresh Kumar 
9352352558SFabian Frederick static struct pxa_freqs pxa27x_freqs[] = {
94d9278077SRobert Jarzmik 	{104000,  900000, 1705000 },
95d9278077SRobert Jarzmik 	{156000, 1000000, 1705000 },
96d9278077SRobert Jarzmik 	{208000, 1180000, 1705000 },
97d9278077SRobert Jarzmik 	{312000, 1250000, 1705000 },
98d9278077SRobert Jarzmik 	{416000, 1350000, 1705000 },
99d9278077SRobert Jarzmik 	{520000, 1450000, 1705000 },
100d9278077SRobert Jarzmik 	{624000, 1550000, 1705000 }
101cffc96ebSViresh Kumar };
102cffc96ebSViresh Kumar 
103cffc96ebSViresh Kumar #define NUM_PXA27x_FREQS ARRAY_SIZE(pxa27x_freqs)
104cffc96ebSViresh Kumar static struct cpufreq_frequency_table
105cffc96ebSViresh Kumar 	pxa27x_freq_table[NUM_PXA27x_FREQS+1];
106cffc96ebSViresh Kumar 
107cffc96ebSViresh Kumar #ifdef CONFIG_REGULATOR
108cffc96ebSViresh Kumar 
pxa_cpufreq_change_voltage(const struct pxa_freqs * pxa_freq)10903c22990SFabian Frederick static int pxa_cpufreq_change_voltage(const struct pxa_freqs *pxa_freq)
110cffc96ebSViresh Kumar {
111cffc96ebSViresh Kumar 	int ret = 0;
112cffc96ebSViresh Kumar 	int vmin, vmax;
113cffc96ebSViresh Kumar 
114cffc96ebSViresh Kumar 	if (!cpu_is_pxa27x())
115cffc96ebSViresh Kumar 		return 0;
116cffc96ebSViresh Kumar 
117cffc96ebSViresh Kumar 	vmin = pxa_freq->vmin;
118cffc96ebSViresh Kumar 	vmax = pxa_freq->vmax;
119cffc96ebSViresh Kumar 	if ((vmin == -1) || (vmax == -1))
120cffc96ebSViresh Kumar 		return 0;
121cffc96ebSViresh Kumar 
122cffc96ebSViresh Kumar 	ret = regulator_set_voltage(vcc_core, vmin, vmax);
123cffc96ebSViresh Kumar 	if (ret)
1241c5864e2SJoe Perches 		pr_err("Failed to set vcc_core in [%dmV..%dmV]\n", vmin, vmax);
125cffc96ebSViresh Kumar 	return ret;
126cffc96ebSViresh Kumar }
127cffc96ebSViresh Kumar 
pxa_cpufreq_init_voltages(void)1289505b98cSArnd Bergmann static void pxa_cpufreq_init_voltages(void)
129cffc96ebSViresh Kumar {
130cffc96ebSViresh Kumar 	vcc_core = regulator_get(NULL, "vcc_core");
131cffc96ebSViresh Kumar 	if (IS_ERR(vcc_core)) {
1321c5864e2SJoe Perches 		pr_info("Didn't find vcc_core regulator\n");
133cffc96ebSViresh Kumar 		vcc_core = NULL;
134cffc96ebSViresh Kumar 	} else {
1351c5864e2SJoe Perches 		pr_info("Found vcc_core regulator\n");
136cffc96ebSViresh Kumar 	}
137cffc96ebSViresh Kumar }
138cffc96ebSViresh Kumar #else
pxa_cpufreq_change_voltage(const struct pxa_freqs * pxa_freq)139fb2a24a1SArnd Bergmann static int pxa_cpufreq_change_voltage(const struct pxa_freqs *pxa_freq)
140cffc96ebSViresh Kumar {
141cffc96ebSViresh Kumar 	return 0;
142cffc96ebSViresh Kumar }
143cffc96ebSViresh Kumar 
pxa_cpufreq_init_voltages(void)1449505b98cSArnd Bergmann static void pxa_cpufreq_init_voltages(void) { }
145cffc96ebSViresh Kumar #endif
146cffc96ebSViresh Kumar 
find_freq_tables(struct cpufreq_frequency_table ** freq_table,const struct pxa_freqs ** pxa_freqs)147cffc96ebSViresh Kumar static void find_freq_tables(struct cpufreq_frequency_table **freq_table,
14803c22990SFabian Frederick 			     const struct pxa_freqs **pxa_freqs)
149cffc96ebSViresh Kumar {
150cffc96ebSViresh Kumar 	if (cpu_is_pxa25x()) {
151cffc96ebSViresh Kumar 		if (!pxa255_turbo_table) {
152cffc96ebSViresh Kumar 			*pxa_freqs = pxa255_run_freqs;
153cffc96ebSViresh Kumar 			*freq_table = pxa255_run_freq_table;
154cffc96ebSViresh Kumar 		} else {
155cffc96ebSViresh Kumar 			*pxa_freqs = pxa255_turbo_freqs;
156cffc96ebSViresh Kumar 			*freq_table = pxa255_turbo_freq_table;
157cffc96ebSViresh Kumar 		}
1587264a2bbSArnd Bergmann 	} else if (cpu_is_pxa27x()) {
159cffc96ebSViresh Kumar 		*pxa_freqs = pxa27x_freqs;
160cffc96ebSViresh Kumar 		*freq_table = pxa27x_freq_table;
1617264a2bbSArnd Bergmann 	} else {
1627264a2bbSArnd Bergmann 		BUG();
163cffc96ebSViresh Kumar 	}
164cffc96ebSViresh Kumar }
165cffc96ebSViresh Kumar 
pxa27x_guess_max_freq(void)166cffc96ebSViresh Kumar static void pxa27x_guess_max_freq(void)
167cffc96ebSViresh Kumar {
168cffc96ebSViresh Kumar 	if (!pxa27x_maxfreq) {
169cffc96ebSViresh Kumar 		pxa27x_maxfreq = 416000;
170b49c22a6SJoe Perches 		pr_info("PXA CPU 27x max frequency not defined (pxa27x_maxfreq), assuming pxa271 with %dkHz maxfreq\n",
171cffc96ebSViresh Kumar 			pxa27x_maxfreq);
172cffc96ebSViresh Kumar 	} else {
173cffc96ebSViresh Kumar 		pxa27x_maxfreq *= 1000;
174cffc96ebSViresh Kumar 	}
175cffc96ebSViresh Kumar }
176cffc96ebSViresh Kumar 
pxa_cpufreq_get(unsigned int cpu)177cffc96ebSViresh Kumar static unsigned int pxa_cpufreq_get(unsigned int cpu)
178cffc96ebSViresh Kumar {
179d9278077SRobert Jarzmik 	struct pxa_cpufreq_data *data = cpufreq_get_driver_data();
180d9278077SRobert Jarzmik 
181d9278077SRobert Jarzmik 	return (unsigned int) clk_get_rate(data->clk_core) / 1000;
182cffc96ebSViresh Kumar }
183cffc96ebSViresh Kumar 
pxa_set_target(struct cpufreq_policy * policy,unsigned int idx)1849c0ebcf7SViresh Kumar static int pxa_set_target(struct cpufreq_policy *policy, unsigned int idx)
185cffc96ebSViresh Kumar {
186cffc96ebSViresh Kumar 	struct cpufreq_frequency_table *pxa_freqs_table;
18703c22990SFabian Frederick 	const struct pxa_freqs *pxa_freq_settings;
188d9278077SRobert Jarzmik 	struct pxa_cpufreq_data *data = cpufreq_get_driver_data();
189d9278077SRobert Jarzmik 	unsigned int new_freq_cpu;
190cffc96ebSViresh Kumar 	int ret = 0;
191cffc96ebSViresh Kumar 
192cffc96ebSViresh Kumar 	/* Get the current policy */
193cffc96ebSViresh Kumar 	find_freq_tables(&pxa_freqs_table, &pxa_freq_settings);
194cffc96ebSViresh Kumar 
195cffc96ebSViresh Kumar 	new_freq_cpu = pxa_freq_settings[idx].khz;
196cffc96ebSViresh Kumar 
197cffc96ebSViresh Kumar 	if (freq_debug)
198d9278077SRobert Jarzmik 		pr_debug("Changing CPU frequency from %d Mhz to %d Mhz\n",
199d9278077SRobert Jarzmik 			 policy->cur / 1000,  new_freq_cpu / 1000);
200cffc96ebSViresh Kumar 
201d4019f0aSViresh Kumar 	if (vcc_core && new_freq_cpu > policy->cur) {
202cffc96ebSViresh Kumar 		ret = pxa_cpufreq_change_voltage(&pxa_freq_settings[idx]);
203cffc96ebSViresh Kumar 		if (ret)
204cffc96ebSViresh Kumar 			return ret;
205d4019f0aSViresh Kumar 	}
206cffc96ebSViresh Kumar 
207d9278077SRobert Jarzmik 	clk_set_rate(data->clk_core, new_freq_cpu * 1000);
208cffc96ebSViresh Kumar 
209cffc96ebSViresh Kumar 	/*
210cffc96ebSViresh Kumar 	 * Even if voltage setting fails, we don't report it, as the frequency
211cffc96ebSViresh Kumar 	 * change succeeded. The voltage reduction is not a critical failure,
212cffc96ebSViresh Kumar 	 * only power savings will suffer from this.
213cffc96ebSViresh Kumar 	 *
214cffc96ebSViresh Kumar 	 * Note: if the voltage change fails, and a return value is returned, a
215cffc96ebSViresh Kumar 	 * bug is triggered (seems a deadlock). Should anybody find out where,
216cffc96ebSViresh Kumar 	 * the "return 0" should become a "return ret".
217cffc96ebSViresh Kumar 	 */
218d4019f0aSViresh Kumar 	if (vcc_core && new_freq_cpu < policy->cur)
219cffc96ebSViresh Kumar 		ret = pxa_cpufreq_change_voltage(&pxa_freq_settings[idx]);
220cffc96ebSViresh Kumar 
221cffc96ebSViresh Kumar 	return 0;
222cffc96ebSViresh Kumar }
223cffc96ebSViresh Kumar 
pxa_cpufreq_init(struct cpufreq_policy * policy)224cffc96ebSViresh Kumar static int pxa_cpufreq_init(struct cpufreq_policy *policy)
225cffc96ebSViresh Kumar {
226cffc96ebSViresh Kumar 	int i;
227cffc96ebSViresh Kumar 	unsigned int freq;
228cffc96ebSViresh Kumar 	struct cpufreq_frequency_table *pxa255_freq_table;
22903c22990SFabian Frederick 	const struct pxa_freqs *pxa255_freqs;
230cffc96ebSViresh Kumar 
231cffc96ebSViresh Kumar 	/* try to guess pxa27x cpu */
232cffc96ebSViresh Kumar 	if (cpu_is_pxa27x())
233cffc96ebSViresh Kumar 		pxa27x_guess_max_freq();
234cffc96ebSViresh Kumar 
235cffc96ebSViresh Kumar 	pxa_cpufreq_init_voltages();
236cffc96ebSViresh Kumar 
237cffc96ebSViresh Kumar 	/* set default policy and cpuinfo */
238cffc96ebSViresh Kumar 	policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */
239cffc96ebSViresh Kumar 
240cffc96ebSViresh Kumar 	/* Generate pxa25x the run cpufreq_frequency_table struct */
241cffc96ebSViresh Kumar 	for (i = 0; i < NUM_PXA25x_RUN_FREQS; i++) {
242cffc96ebSViresh Kumar 		pxa255_run_freq_table[i].frequency = pxa255_run_freqs[i].khz;
24350701588SViresh Kumar 		pxa255_run_freq_table[i].driver_data = i;
244cffc96ebSViresh Kumar 	}
245cffc96ebSViresh Kumar 	pxa255_run_freq_table[i].frequency = CPUFREQ_TABLE_END;
246cffc96ebSViresh Kumar 
247cffc96ebSViresh Kumar 	/* Generate pxa25x the turbo cpufreq_frequency_table struct */
248cffc96ebSViresh Kumar 	for (i = 0; i < NUM_PXA25x_TURBO_FREQS; i++) {
249cffc96ebSViresh Kumar 		pxa255_turbo_freq_table[i].frequency =
250cffc96ebSViresh Kumar 			pxa255_turbo_freqs[i].khz;
25150701588SViresh Kumar 		pxa255_turbo_freq_table[i].driver_data = i;
252cffc96ebSViresh Kumar 	}
253cffc96ebSViresh Kumar 	pxa255_turbo_freq_table[i].frequency = CPUFREQ_TABLE_END;
254cffc96ebSViresh Kumar 
255cffc96ebSViresh Kumar 	pxa255_turbo_table = !!pxa255_turbo_table;
256cffc96ebSViresh Kumar 
257cffc96ebSViresh Kumar 	/* Generate the pxa27x cpufreq_frequency_table struct */
258cffc96ebSViresh Kumar 	for (i = 0; i < NUM_PXA27x_FREQS; i++) {
259cffc96ebSViresh Kumar 		freq = pxa27x_freqs[i].khz;
260cffc96ebSViresh Kumar 		if (freq > pxa27x_maxfreq)
261cffc96ebSViresh Kumar 			break;
262cffc96ebSViresh Kumar 		pxa27x_freq_table[i].frequency = freq;
26350701588SViresh Kumar 		pxa27x_freq_table[i].driver_data = i;
264cffc96ebSViresh Kumar 	}
26550701588SViresh Kumar 	pxa27x_freq_table[i].driver_data = i;
266cffc96ebSViresh Kumar 	pxa27x_freq_table[i].frequency = CPUFREQ_TABLE_END;
267cffc96ebSViresh Kumar 
268cffc96ebSViresh Kumar 	/*
269cffc96ebSViresh Kumar 	 * Set the policy's minimum and maximum frequencies from the tables
270cffc96ebSViresh Kumar 	 * just constructed.  This sets cpuinfo.mxx_freq, min and max.
271cffc96ebSViresh Kumar 	 */
272cffc96ebSViresh Kumar 	if (cpu_is_pxa25x()) {
273cffc96ebSViresh Kumar 		find_freq_tables(&pxa255_freq_table, &pxa255_freqs);
2741c5864e2SJoe Perches 		pr_info("using %s frequency table\n",
275cffc96ebSViresh Kumar 			pxa255_turbo_table ? "turbo" : "run");
2766a77a1e6SViresh Kumar 
2778ed5a219SViresh Kumar 		policy->freq_table = pxa255_freq_table;
278cffc96ebSViresh Kumar 	}
2796a77a1e6SViresh Kumar 	else if (cpu_is_pxa27x()) {
2808ed5a219SViresh Kumar 		policy->freq_table = pxa27x_freq_table;
2816a77a1e6SViresh Kumar 	}
282cffc96ebSViresh Kumar 
2831c5864e2SJoe Perches 	pr_info("frequency change support initialized\n");
284cffc96ebSViresh Kumar 
285cffc96ebSViresh Kumar 	return 0;
286cffc96ebSViresh Kumar }
287cffc96ebSViresh Kumar 
288cffc96ebSViresh Kumar static struct cpufreq_driver pxa_cpufreq_driver = {
289ae6b4271SViresh Kumar 	.flags	= CPUFREQ_NEED_INITIAL_FREQ_CHECK,
290bf36e48dSViresh Kumar 	.verify	= cpufreq_generic_frequency_table_verify,
2919c0ebcf7SViresh Kumar 	.target_index = pxa_set_target,
292cffc96ebSViresh Kumar 	.init	= pxa_cpufreq_init,
293cffc96ebSViresh Kumar 	.get	= pxa_cpufreq_get,
294cffc96ebSViresh Kumar 	.name	= "PXA2xx",
295d9278077SRobert Jarzmik 	.driver_data = &pxa_cpufreq_data,
296cffc96ebSViresh Kumar };
297cffc96ebSViresh Kumar 
pxa_cpu_init(void)298cffc96ebSViresh Kumar static int __init pxa_cpu_init(void)
299cffc96ebSViresh Kumar {
300cffc96ebSViresh Kumar 	int ret = -ENODEV;
301d9278077SRobert Jarzmik 
302d9278077SRobert Jarzmik 	pxa_cpufreq_data.clk_core = clk_get_sys(NULL, "core");
303d9278077SRobert Jarzmik 	if (IS_ERR(pxa_cpufreq_data.clk_core))
304d9278077SRobert Jarzmik 		return PTR_ERR(pxa_cpufreq_data.clk_core);
305d9278077SRobert Jarzmik 
306cffc96ebSViresh Kumar 	if (cpu_is_pxa25x() || cpu_is_pxa27x())
307cffc96ebSViresh Kumar 		ret = cpufreq_register_driver(&pxa_cpufreq_driver);
308cffc96ebSViresh Kumar 	return ret;
309cffc96ebSViresh Kumar }
310cffc96ebSViresh Kumar 
pxa_cpu_exit(void)311cffc96ebSViresh Kumar static void __exit pxa_cpu_exit(void)
312cffc96ebSViresh Kumar {
313cffc96ebSViresh Kumar 	cpufreq_unregister_driver(&pxa_cpufreq_driver);
314cffc96ebSViresh Kumar }
315cffc96ebSViresh Kumar 
316cffc96ebSViresh Kumar 
317cffc96ebSViresh Kumar MODULE_AUTHOR("Intrinsyc Software Inc.");
318cffc96ebSViresh Kumar MODULE_DESCRIPTION("CPU frequency changing driver for the PXA architecture");
319cffc96ebSViresh Kumar MODULE_LICENSE("GPL");
320cffc96ebSViresh Kumar module_init(pxa_cpu_init);
321cffc96ebSViresh Kumar module_exit(pxa_cpu_exit);
322