cpufreq_ondemand.c (3a3e9e06d0c11b8efa95933a88c9e67209fa4330) | cpufreq_ondemand.c (d5b73cd870e2b049ef566aec2791dbf5fd26a7ec) |
---|---|
1/* 2 * drivers/cpufreq/cpufreq_ondemand.c 3 * 4 * Copyright (C) 2001 Russell King 5 * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. 6 * Jun Nakajima <jun.nakajima@intel.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 468 unchanged lines hidden (view full) --- 477/************************** sysfs end ************************/ 478 479static int od_init(struct dbs_data *dbs_data) 480{ 481 struct od_dbs_tuners *tuners; 482 u64 idle_time; 483 int cpu; 484 | 1/* 2 * drivers/cpufreq/cpufreq_ondemand.c 3 * 4 * Copyright (C) 2001 Russell King 5 * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>. 6 * Jun Nakajima <jun.nakajima@intel.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 468 unchanged lines hidden (view full) --- 477/************************** sysfs end ************************/ 478 479static int od_init(struct dbs_data *dbs_data) 480{ 481 struct od_dbs_tuners *tuners; 482 u64 idle_time; 483 int cpu; 484 |
485 tuners = kzalloc(sizeof(struct od_dbs_tuners), GFP_KERNEL); | 485 tuners = kzalloc(sizeof(*tuners), GFP_KERNEL); |
486 if (!tuners) { 487 pr_err("%s: kzalloc failed\n", __func__); 488 return -ENOMEM; 489 } 490 491 cpu = get_cpu(); 492 idle_time = get_cpu_idle_time_us(cpu, NULL); 493 put_cpu(); --- 139 unchanged lines hidden --- | 486 if (!tuners) { 487 pr_err("%s: kzalloc failed\n", __func__); 488 return -ENOMEM; 489 } 490 491 cpu = get_cpu(); 492 idle_time = get_cpu_idle_time_us(cpu, NULL); 493 put_cpu(); --- 139 unchanged lines hidden --- |