File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ static DEFINE_SPINLOCK(zone_scan_lock);
55
55
56
56
unsigned long badness (struct task_struct * p , unsigned long uptime )
57
57
{
58
- unsigned long points , cpu_time , run_time , s ;
58
+ unsigned long points , cpu_time , run_time ;
59
59
struct mm_struct * mm ;
60
60
struct task_struct * child ;
61
61
@@ -110,12 +110,10 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
110
110
else
111
111
run_time = 0 ;
112
112
113
- s = int_sqrt (cpu_time );
114
- if (s )
115
- points /= s ;
116
- s = int_sqrt (int_sqrt (run_time ));
117
- if (s )
118
- points /= s ;
113
+ if (cpu_time )
114
+ points /= int_sqrt (cpu_time );
115
+ if (run_time )
116
+ points /= int_sqrt (int_sqrt (run_time ));
119
117
120
118
/*
121
119
* Niced processes are most likely less important, so double
You can’t perform that action at this time.
0 commit comments