Unfortunately I have the same issue although I always return a constant.
int freq = (int)(cpufreq_quick_get(smp_processor_id())/1000);
int freq = 350;
I think the problem is somewhere else.
Are you testing on Pandaboard / OMAP4 platform?