MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / mach-mx5 / cpu_op-mx51.c
blob9d34c3d4c02498f2f8972447235f485742dbdffb
1 /*
2 * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
3 */
5 /*
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
14 #include <linux/types.h>
15 #include <mach/hardware.h>
16 #include <linux/kernel.h>
18 static struct cpu_op mx51_cpu_op[] = {
20 .cpu_rate = 160000000,},
22 .cpu_rate = 800000000,},
25 struct cpu_op *mx51_get_cpu_op(int *op)
27 *op = ARRAY_SIZE(mx51_cpu_op);
28 return mx51_cpu_op;