|
@@ -15,6 +15,8 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/smp.h>
|
|
#include <linux/smp.h>
|
|
|
|
+#include <linux/init.h>
|
|
|
|
+#include <linux/kernel.h>
|
|
#include <linux/io.h>
|
|
#include <linux/io.h>
|
|
#include <linux/log2.h>
|
|
#include <linux/log2.h>
|
|
#include <asm/arcregs.h>
|
|
#include <asm/arcregs.h>
|
|
@@ -157,10 +159,10 @@ void mtm_enable_core(unsigned int cpu)
|
|
/* Verify and set the value of the mtm hs counter */
|
|
/* Verify and set the value of the mtm hs counter */
|
|
static int __init set_mtm_hs_ctr(char *ctr_str)
|
|
static int __init set_mtm_hs_ctr(char *ctr_str)
|
|
{
|
|
{
|
|
- long hs_ctr;
|
|
|
|
|
|
+ int hs_ctr;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- ret = kstrtol(ctr_str, 0, &hs_ctr);
|
|
|
|
|
|
+ ret = kstrtoint(ctr_str, 0, &hs_ctr);
|
|
|
|
|
|
if (ret || hs_ctr > MT_HS_CNT_MAX || hs_ctr < MT_HS_CNT_MIN) {
|
|
if (ret || hs_ctr > MT_HS_CNT_MAX || hs_ctr < MT_HS_CNT_MIN) {
|
|
pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n",
|
|
pr_err("** Invalid @nps_mtm_hs_ctr [%d] needs to be [%d:%d] (incl)\n",
|